Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def stream_chat(message, history: list, temperature: float, max_length: int):
|
|
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":
|
56 |
else:
|
57 |
conversation.extend([{"role": "user", "content": prompt}, {"role": "assistant", "content": answer}])
|
58 |
conversation.append({"role": "user", "image": image, "content": message['text']})
|
|
|
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": ""},{"role": "assistant", "content": ""}])
|
56 |
else:
|
57 |
conversation.extend([{"role": "user", "content": prompt}, {"role": "assistant", "content": answer}])
|
58 |
conversation.append({"role": "user", "image": image, "content": message['text']})
|