Spaces:
Sleeping
Sleeping
Update BasicAgent.py
Browse files- BasicAgent.py +1 -1
BasicAgent.py
CHANGED
|
@@ -19,7 +19,7 @@ from smolagents import (
|
|
| 19 |
class newAgent:
|
| 20 |
"""Adapts smolagents.CodeAgent to the HF course template API."""
|
| 21 |
def __init__(self):
|
| 22 |
-
model_id = "
|
| 23 |
hf_token = os.getenv("HUGGINGFACEHUB_API_TOKEN") # read real secret
|
| 24 |
if not hf_token:
|
| 25 |
raise RuntimeError("HUGGINGFACEHUB_API_TOKEN not set in Space secrets")
|
|
|
|
| 19 |
class newAgent:
|
| 20 |
"""Adapts smolagents.CodeAgent to the HF course template API."""
|
| 21 |
def __init__(self):
|
| 22 |
+
model_id = "meta-llama/Meta-Llama-3.1-8B-Instruct" # correct repo name
|
| 23 |
hf_token = os.getenv("HUGGINGFACEHUB_API_TOKEN") # read real secret
|
| 24 |
if not hf_token:
|
| 25 |
raise RuntimeError("HUGGINGFACEHUB_API_TOKEN not set in Space secrets")
|