Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
66f7210
1
Parent(s):
e81354c
Fix little
Browse files
app.py
CHANGED
|
@@ -222,8 +222,8 @@ def bot(
|
|
| 222 |
elif isinstance(processor_history[-1].get('content'), list):
|
| 223 |
processor_history[-1]['content'].append(image_input)
|
| 224 |
else:
|
| 225 |
-
|
| 226 |
-
|
| 227 |
|
| 228 |
print(processor_history)
|
| 229 |
|
|
|
|
| 222 |
elif isinstance(processor_history[-1].get('content'), list):
|
| 223 |
processor_history[-1]['content'].append(image_input)
|
| 224 |
else:
|
| 225 |
+
formatted_content.append(image_input)
|
| 226 |
+
processor_history.append({"role": role, "content": formatted_content})
|
| 227 |
|
| 228 |
print(processor_history)
|
| 229 |
|