Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def stream_chat(message, history: list, temperature: float, max_new_tokens: int)
|
|
56 |
|
57 |
if message["files"]:
|
58 |
image = Image.open(message["files"][-1])
|
59 |
-
conversation.append({"role": "user"
|
60 |
else:
|
61 |
if len(history) == 0:
|
62 |
gr.Error("Please upload an image first.")
|
|
|
56 |
|
57 |
if message["files"]:
|
58 |
image = Image.open(message["files"][-1])
|
59 |
+
conversation.append({"role": "user", "content": f"<|image_1|>\n{message['text']}"})
|
60 |
else:
|
61 |
if len(history) == 0:
|
62 |
gr.Error("Please upload an image first.")
|