Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
2d28c5b
1
Parent(s):
66f7210
fix text content
Browse files
app.py
CHANGED
|
@@ -204,7 +204,7 @@ def bot(
|
|
| 204 |
content = msg.get("content")
|
| 205 |
|
| 206 |
if isinstance(content, str):
|
| 207 |
-
processor_history.append({"role": role, "content": {"type": "text", "text": content}})
|
| 208 |
elif isinstance(content, tuple):
|
| 209 |
formatted_content = []
|
| 210 |
tmp_path, _ = content
|
|
|
|
| 204 |
content = msg.get("content")
|
| 205 |
|
| 206 |
if isinstance(content, str):
|
| 207 |
+
processor_history.append({"role": role, "content": [{"type": "text", "text": content}]})
|
| 208 |
elif isinstance(content, tuple):
|
| 209 |
formatted_content = []
|
| 210 |
tmp_path, _ = content
|