Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -301,7 +301,8 @@ Grading JSON:
|
|
| 301 |
"""
|
| 302 |
print(f"📡 Sending mapping request for image {image_path} to Gemini...")
|
| 303 |
img = Image.open(image_path)
|
| 304 |
-
response = model.generate_content([prompt, img])
|
|
|
|
| 305 |
raw_text = getattr(response, "text", None)
|
| 306 |
if not raw_text and getattr(response, "candidates", None):
|
| 307 |
raw_text = response.candidates[0].content.parts[0].text
|
|
|
|
| 301 |
"""
|
| 302 |
print(f"📡 Sending mapping request for image {image_path} to Gemini...")
|
| 303 |
img = Image.open(image_path)
|
| 304 |
+
response = model.generate_content([prompt, img])
|
| 305 |
+
print("💬 Gemini response:", response)
|
| 306 |
raw_text = getattr(response, "text", None)
|
| 307 |
if not raw_text and getattr(response, "candidates", None):
|
| 308 |
raw_text = response.candidates[0].content.parts[0].text
|