Spaces:
Running
Running
Fix
Browse files
app.py
CHANGED
|
@@ -56,7 +56,7 @@ def process_new_user_message(message: dict) -> list[dict]:
|
|
| 56 |
image_index += 1
|
| 57 |
elif part.strip():
|
| 58 |
content.append({"type": "text", "text": part.strip()})
|
| 59 |
-
elif isinstance(part, str) and
|
| 60 |
content.append({"type": "text", "text": part})
|
| 61 |
print(content)
|
| 62 |
return content
|
|
|
|
| 56 |
image_index += 1
|
| 57 |
elif part.strip():
|
| 58 |
content.append({"type": "text", "text": part.strip()})
|
| 59 |
+
elif isinstance(part, str) and part != "<image>":
|
| 60 |
content.append({"type": "text", "text": part})
|
| 61 |
print(content)
|
| 62 |
return content
|