Spaces:
Running
on
Zero
Running
on
Zero
Vladyslav Humennyy
commited on
Commit
·
2ba0e3d
1
Parent(s):
e892bca
Fix gradio errors
Browse files
app.py
CHANGED
|
@@ -97,9 +97,7 @@ def user(user_message, image_data, history: list):
|
|
| 97 |
{"type": "text", "text": text_content},
|
| 98 |
{
|
| 99 |
"type": "image",
|
| 100 |
-
"
|
| 101 |
-
"alt_text": "User uploaded image",
|
| 102 |
-
"_base64": f"data:image/jpeg;base64,{img_base64}", # Store base64 for model
|
| 103 |
},
|
| 104 |
],
|
| 105 |
})
|
|
|
|
| 97 |
{"type": "text", "text": text_content},
|
| 98 |
{
|
| 99 |
"type": "image",
|
| 100 |
+
"image": tmp_path, # Use 'image' key instead of 'path'
|
|
|
|
|
|
|
| 101 |
},
|
| 102 |
],
|
| 103 |
})
|