Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ app = FastAPI()
|
|
| 18 |
# --- Configuration ---
|
| 19 |
# Load API Key securely (e.g., from environment variable)
|
| 20 |
# Replace with your actual key retrieval method
|
| 21 |
-
|
| 22 |
|
| 23 |
if not API_KEY:
|
| 24 |
logger.error("GEMINI_API_KEY environment variable not set.")
|
|
|
|
| 18 |
# --- Configuration ---
|
| 19 |
# Load API Key securely (e.g., from environment variable)
|
| 20 |
# Replace with your actual key retrieval method
|
| 21 |
+
API_KEY = os.getenv("GOOGLE_API_KEY") # Use environment variable or replace directly
|
| 22 |
|
| 23 |
if not API_KEY:
|
| 24 |
logger.error("GEMINI_API_KEY environment variable not set.")
|