Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -57,6 +57,7 @@ def stream_chat(message, history: list, temperature: float, max_new_tokens: int)
|
|
57 |
image = None
|
58 |
else:
|
59 |
image = Image.open(history[0][0][0])
|
|
|
60 |
if answer is None:
|
61 |
conversation.extend([{"role": "user", "content": prompt},{"role": "assistant", "content": ""}])
|
62 |
else:
|
|
|
57 |
image = None
|
58 |
else:
|
59 |
image = Image.open(history[0][0][0])
|
60 |
+
for prompt, answer in history:
|
61 |
if answer is None:
|
62 |
conversation.extend([{"role": "user", "content": prompt},{"role": "assistant", "content": ""}])
|
63 |
else:
|