nihalaninihal commited on
Commit
1c70005
·
verified ·
1 Parent(s): 17d12cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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 = "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"
21
- GEMINI_API_KEY = "AIzaSyDPkNd-wD80KCpaeDPIEvuksfW-an6Ys5Q"
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")