Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,8 @@ from smolagents import CodeAgent, GoogleSearchTool, InferenceClientModel, VisitW
|
|
8 |
# (Keep Constants as is)
|
9 |
# --- Constants ---
|
10 |
os.environ["SERPER_API_KEY"] = "3814ecb904f7401e22386b7b7ee3a6f913741c5"
|
11 |
-
|
|
|
12 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
13 |
|
14 |
# --- Basic Agent Definition ---
|
|
|
8 |
# (Keep Constants as is)
|
9 |
# --- Constants ---
|
10 |
os.environ["SERPER_API_KEY"] = "3814ecb904f7401e22386b7b7ee3a6f913741c5"
|
11 |
+
hf_token = os.environ.get("Hugging_Face_API_Token")
|
12 |
+
model=InferenceClientModel(model_id="HuggingFaceH4/zephyr-7b-beta", api_key=hf_token)
|
13 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
14 |
|
15 |
# --- Basic Agent Definition ---
|