not-lain commited on
Commit
772e45d
1 Parent(s): 9d33c66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,12 +36,12 @@ def ovis_chat(message, history):
36
  if msg["role"] == "user" and "size" not in msg.keys():
37
  conversations.append({
38
  "from": "human",
39
- "value": msg["text"]
40
  })
41
  elif msg["role"] == "assistant":
42
  conversations.append({
43
  "from": "gpt",
44
- "value": response
45
  })
46
  text_input = text_input.replace(image_placeholder, '')
47
  conversations.append({
 
36
  if msg["role"] == "user" and "size" not in msg.keys():
37
  conversations.append({
38
  "from": "human",
39
+ "value": msg["content"]
40
  })
41
  elif msg["role"] == "assistant":
42
  conversations.append({
43
  "from": "gpt",
44
+ "value": msg["content"]
45
  })
46
  text_input = text_input.replace(image_placeholder, '')
47
  conversations.append({