Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def ask_openai_with_image(instruction, image, low):
|
|
41 |
"type": "image_url",
|
42 |
"image_url": {
|
43 |
"url": f"data:image/jpeg;base64,{base64_image}",
|
44 |
-
"detail": "low" if
|
45 |
},
|
46 |
},
|
47 |
],
|
|
|
41 |
"type": "image_url",
|
42 |
"image_url": {
|
43 |
"url": f"data:image/jpeg;base64,{base64_image}",
|
44 |
+
"detail": "low" if low else "high",
|
45 |
},
|
46 |
},
|
47 |
],
|