Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def stream_chat(message, history: list, temperature: float, max_new_tokens: int)
|
|
61 |
raise gr.Error("Please upload an image first.")
|
62 |
image = None
|
63 |
elif len(history):
|
64 |
-
image = Image.open(history[0][0])
|
65 |
for prompt, answer in history:
|
66 |
conversation[0]['content'] = f"<|image_1|>\n{prompt}"
|
67 |
conversation.extend([{"role": "assistant", "content": answer}])
|
|
|
61 |
raise gr.Error("Please upload an image first.")
|
62 |
image = None
|
63 |
elif len(history):
|
64 |
+
image = Image.open(history[0][0][0])
|
65 |
for prompt, answer in history:
|
66 |
conversation[0]['content'] = f"<|image_1|>\n{prompt}"
|
67 |
conversation.extend([{"role": "assistant", "content": answer}])
|