Update app.py
Browse files
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("
|
| 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 |
|