Noshal commited on
Commit
e60ec64
·
verified ·
1 Parent(s): c0db384

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -196,7 +196,7 @@ def analyze_with_gemini(image_pil, issue, location, city, yolo_summary):
196
  try:
197
  import google.generativeai as genai
198
  genai.configure(api_key=GOOGLE_API_KEY)
199
- model = genai.GenerativeModel("gemini-2.0-flash")
200
  buf = io.BytesIO(); image_pil.save(buf,format="JPEG")
201
  prompt = f"""Strict Pakistani Civic Issue Inspector AI.
202
  ISSUE: '{issue}' CITY: {city} LOCATION: {location} YOLO: {yolo_summary}
 
196
  try:
197
  import google.generativeai as genai
198
  genai.configure(api_key=GOOGLE_API_KEY)
199
+ model = genai.GenerativeModel("gemini-3-flash-preview")
200
  buf = io.BytesIO(); image_pil.save(buf,format="JPEG")
201
  prompt = f"""Strict Pakistani Civic Issue Inspector AI.
202
  ISSUE: '{issue}' CITY: {city} LOCATION: {location} YOLO: {yolo_summary}