Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ import traceback
|
|
| 12 |
# ==============================================================
|
| 13 |
# API Configuration - Add your key here
|
| 14 |
# ==============================================================
|
| 15 |
-
GEMINI_API_KEY = "
|
| 16 |
# ==============================================================
|
| 17 |
# Enhanced extraction prompt with better instructions
|
| 18 |
# ==============================================================
|
|
@@ -235,7 +235,7 @@ def process_documents(files):
|
|
| 235 |
|
| 236 |
# Use the hardcoded API key and default model
|
| 237 |
api_key = GEMINI_API_KEY
|
| 238 |
-
model_choice = "
|
| 239 |
|
| 240 |
if not api_key or api_key.strip() == "":
|
| 241 |
return "❌ Error: API key not configured in code", "{}", "API key missing"
|
|
|
|
| 12 |
# ==============================================================
|
| 13 |
# API Configuration - Add your key here
|
| 14 |
# ==============================================================
|
| 15 |
+
GEMINI_API_KEY = "AIzaSyC1VBSYRFPNOS6MJ6VywAikvVCi8ggAlLU"
|
| 16 |
# ==============================================================
|
| 17 |
# Enhanced extraction prompt with better instructions
|
| 18 |
# ==============================================================
|
|
|
|
| 235 |
|
| 236 |
# Use the hardcoded API key and default model
|
| 237 |
api_key = GEMINI_API_KEY
|
| 238 |
+
model_choice = "gemini-2.0-flash"
|
| 239 |
|
| 240 |
if not api_key or api_key.strip() == "":
|
| 241 |
return "❌ Error: API key not configured in code", "{}", "API key missing"
|