Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -149,7 +149,7 @@ def analyze_image_with_text(image_path: str, user_text: str) -> str:
|
|
| 149 |
model="gemini-2.5-flash",
|
| 150 |
config=types.GenerateContentConfig(response_mime_type="application/json"),
|
| 151 |
contents=[img_user, user_text]
|
| 152 |
-
|
| 153 |
if (response.text != None):
|
| 154 |
out = response.text
|
| 155 |
else:
|
|
|
|
| 149 |
model="gemini-2.5-flash",
|
| 150 |
config=types.GenerateContentConfig(response_mime_type="application/json"),
|
| 151 |
contents=[img_user, user_text]
|
| 152 |
+
)
|
| 153 |
if (response.text != None):
|
| 154 |
out = response.text
|
| 155 |
else:
|