Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def stream_chat(message, history: list, temperature: float, max_length: int):
|
|
49 |
raise gr.Error("Please upload an image first.")
|
50 |
image = None
|
51 |
else:
|
52 |
-
image = Image.open(history[0][
|
53 |
for prompt, answer in history:
|
54 |
if answer is None:
|
55 |
conversation.extend([{"role": "user", "content": prompt},{"role": "assistant", "content": ""}])
|
|
|
49 |
raise gr.Error("Please upload an image first.")
|
50 |
image = None
|
51 |
else:
|
52 |
+
image = Image.open(history[0][0][0])
|
53 |
for prompt, answer in history:
|
54 |
if answer is None:
|
55 |
conversation.extend([{"role": "user", "content": prompt},{"role": "assistant", "content": ""}])
|