Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -82,10 +82,16 @@ def handle_message():
|
|
82 |
os.remove(temp_path)
|
83 |
|
84 |
# Build message content for Qwen (single object with text + images)
|
85 |
-
user_content =
|
|
|
|
|
86 |
"text": text_content,
|
87 |
-
|
|
|
|
|
|
|
88 |
}
|
|
|
89 |
|
90 |
# Send to Qwen only if there's content
|
91 |
if user_content["text"] or user_content["images"]:
|
|
|
82 |
os.remove(temp_path)
|
83 |
|
84 |
# Build message content for Qwen (single object with text + images)
|
85 |
+
user_content = [
|
86 |
+
{
|
87 |
+
"type": "text",
|
88 |
"text": text_content,
|
89 |
+
},
|
90 |
+
{
|
91 |
+
"type": "image",
|
92 |
+
"image": image_cdn_urls
|
93 |
}
|
94 |
+
]
|
95 |
|
96 |
# Send to Qwen only if there's content
|
97 |
if user_content["text"] or user_content["images"]:
|