Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,13 +12,16 @@ from typing import Dict, List, Any, Optional, Tuple
|
|
| 12 |
import tempfile
|
| 13 |
from tenacity import retry, stop_after_attempt, wait_exponential, retry_if_exception_type
|
| 14 |
import time
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
# Load environment variables
|
| 17 |
load_dotenv()
|
| 18 |
|
| 19 |
# Configure API keys
|
| 20 |
-
GITHUB_TOKEN = "
|
| 21 |
-
GEMINI_API_KEY = "
|
| 22 |
|
| 23 |
if not GITHUB_TOKEN or not GEMINI_API_KEY:
|
| 24 |
raise ValueError("Both GITHUB_TOKEN and GEMINI_API_KEY must be set in environment")
|
|
|
|
| 12 |
import tempfile
|
| 13 |
from tenacity import retry, stop_after_attempt, wait_exponential, retry_if_exception_type
|
| 14 |
import time
|
| 15 |
+
import os
|
| 16 |
+
|
| 17 |
+
|
| 18 |
|
| 19 |
# Load environment variables
|
| 20 |
load_dotenv()
|
| 21 |
|
| 22 |
# Configure API keys
|
| 23 |
+
GITHUB_TOKEN = os.getenv("github_api")
|
| 24 |
+
GEMINI_API_KEY = os.getenv("gemini_api")
|
| 25 |
|
| 26 |
if not GITHUB_TOKEN or not GEMINI_API_KEY:
|
| 27 |
raise ValueError("Both GITHUB_TOKEN and GEMINI_API_KEY must be set in environment")
|