Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def bot_streaming(message, history):
|
|
42 |
chat_history.append({"role": "assistant", "content": assistant })
|
43 |
chat_history.append({"role": "user", "content": message['text']})
|
44 |
elif len(history) == 0 and image is not None:
|
45 |
-
chat_history.append({"role": "user", "content": f
|
46 |
elif len(history) == 0 and image is None:
|
47 |
chat_history.append({"role": "user", "content": message['text'] })
|
48 |
|
|
|
42 |
chat_history.append({"role": "assistant", "content": assistant })
|
43 |
chat_history.append({"role": "user", "content": message['text']})
|
44 |
elif len(history) == 0 and image is not None:
|
45 |
+
chat_history.append({"role": "user", "content": f"<image>\n{message['text']}"})
|
46 |
elif len(history) == 0 and image is None:
|
47 |
chat_history.append({"role": "user", "content": message['text'] })
|
48 |
|