Spaces:
Running
Running
Update desc.py
Browse files
desc.py
CHANGED
@@ -29,7 +29,7 @@ def describe_image_with_gpt4o(image_path, api_key):
|
|
29 |
"role": "user",
|
30 |
"content": [
|
31 |
{"type": "text", "text": prompt},
|
32 |
-
{"type": "image_url",
|
33 |
],
|
34 |
}
|
35 |
],
|
|
|
29 |
"role": "user",
|
30 |
"content": [
|
31 |
{"type": "text", "text": prompt},
|
32 |
+
{"type": "image_url","image_url": {"url": img_data_url}},
|
33 |
],
|
34 |
}
|
35 |
],
|