Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def run_inference(message, history):
|
|
56 |
tmmp=[]
|
57 |
for y in x['content']:
|
58 |
if y['type']=='image':
|
59 |
-
tmmp+=[ImageURLChunk(image_url= url_to_base64(y['url'])]
|
60 |
else:
|
61 |
tmmp+=[TextChunk(text= y['text'] )]
|
62 |
final_msg.append(UserMessage(content =tmmp ) )
|
|
|
56 |
tmmp=[]
|
57 |
for y in x['content']:
|
58 |
if y['type']=='image':
|
59 |
+
tmmp+=[ImageURLChunk(image_url= url_to_base64(y['url'])) ]
|
60 |
else:
|
61 |
tmmp+=[TextChunk(text= y['text'] )]
|
62 |
final_msg.append(UserMessage(content =tmmp ) )
|