Spaces:
Running on Zero
Running on Zero
Update vlm.py
Browse files
vlm.py
CHANGED
|
@@ -81,8 +81,8 @@ def build_messages(message: dict, history: list[dict]):
|
|
| 81 |
for image in user_images:
|
| 82 |
user_content.append(
|
| 83 |
{
|
| 84 |
-
"type": "
|
| 85 |
-
"
|
| 86 |
}
|
| 87 |
)
|
| 88 |
|
|
|
|
| 81 |
for image in user_images:
|
| 82 |
user_content.append(
|
| 83 |
{
|
| 84 |
+
"type": "image",
|
| 85 |
+
"image": f"data:image/jpeg;base64,{encode_image(image)}"
|
| 86 |
}
|
| 87 |
)
|
| 88 |
|