Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -70,10 +70,10 @@ def bot_streaming(message, history, max_new_tokens=250):
|
|
70 |
except :
|
71 |
try:
|
72 |
if x['content'][0]['type']=='image':
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
|
78 |
except:
|
79 |
pass
|
|
|
70 |
except :
|
71 |
try:
|
72 |
if x['content'][0]['type']=='image':
|
73 |
+
url = x['content'][1]['url']
|
74 |
+
response = requests.get(url)
|
75 |
+
img = Image.open(BytesIO(response.content)).convert("RGB")
|
76 |
+
images.append(img)
|
77 |
|
78 |
except:
|
79 |
pass
|