Spaces:
Paused
Paused
Update app.py
Browse files
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["
|
40 |
})
|
41 |
elif msg["role"] == "assistant":
|
42 |
conversations.append({
|
43 |
"from": "gpt",
|
44 |
-
"value":
|
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({
|