Visionkambanje commited on
Commit
656091a
·
verified ·
1 Parent(s): 2e84b5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ from smolagents import CodeAgent, DuckDuckGoSearchTool, InferenceClientModel, Py
9
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
10
 
11
  # --- Hugging Face API Key ---
12
- HF_API_KEY = os.environ.get("HF_API_KEY")
13
  if not HF_API_KEY:
14
  raise ValueError("❌ Hugging Face API key not found. Please add it under Settings → Variables and secrets.")
15
 
 
9
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
10
 
11
  # --- Hugging Face API Key ---
12
+ HF_API_KEY = os.environ.get("HF_TOKEN")
13
  if not HF_API_KEY:
14
  raise ValueError("❌ Hugging Face API key not found. Please add it under Settings → Variables and secrets.")
15