atz21 commited on
Commit
788ea53
·
verified ·
1 Parent(s): ea999f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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