Dooratre commited on
Commit
9f438e6
·
verified ·
1 Parent(s): 51ccd3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
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
- "images": image_cdn_urls
 
 
 
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"]: