Update app.py
Browse files
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-
|
| 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}
|