Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,7 +54,7 @@ if not api_key:
|
|
| 54 |
logger.error("GOOGLE_API_KEY not set")
|
| 55 |
raise HTTPException(status_code=500, detail="GOOGLE_API_KEY not set")
|
| 56 |
genai.configure(api_key=api_key)
|
| 57 |
-
model = genai.GenerativeModel("gemini-
|
| 58 |
|
| 59 |
# Set Tesseract path (adjust if necessary)
|
| 60 |
# For Docker/Linux, this is often the correct path. For Windows/macOS, it will differ.
|
|
|
|
| 54 |
logger.error("GOOGLE_API_KEY not set")
|
| 55 |
raise HTTPException(status_code=500, detail="GOOGLE_API_KEY not set")
|
| 56 |
genai.configure(api_key=api_key)
|
| 57 |
+
model = genai.GenerativeModel("gemini-2.5-flash") # Using a recommended model
|
| 58 |
|
| 59 |
# Set Tesseract path (adjust if necessary)
|
| 60 |
# For Docker/Linux, this is often the correct path. For Windows/macOS, it will differ.
|