Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -45,10 +45,15 @@ def ask_openai_with_image(instruction, imagea, imageb):
|
|
45 |
{
|
46 |
"type": "image_url",
|
47 |
"image_url": {
|
48 |
-
"url": f"data:image/jpeg;base64,{
|
49 |
"detail": "high",
|
50 |
},
|
51 |
},
|
|
|
|
|
|
|
|
|
|
|
52 |
{
|
53 |
"type": "image_url",
|
54 |
"image_url": {
|
|
|
45 |
{
|
46 |
"type": "image_url",
|
47 |
"image_url": {
|
48 |
+
"url": f"data:image/jpeg;base64,{base64_image}",
|
49 |
"detail": "high",
|
50 |
},
|
51 |
},
|
52 |
+
],
|
53 |
+
},
|
54 |
+
{
|
55 |
+
"role": "user",
|
56 |
+
"content": [
|
57 |
{
|
58 |
"type": "image_url",
|
59 |
"image_url": {
|