Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ from huggingface_hub import login
|
|
| 17 |
from smolagents import HfApiModel, CodeAgent
|
| 18 |
|
| 19 |
# Authenticate with Hugging Face using environment token
|
| 20 |
-
login(os.getenv("HUGGINGFACEHUB_API_TOKEN"))
|
| 21 |
|
| 22 |
# Initialize LLM model and CodeAgent
|
| 23 |
llm_model = HfApiModel("meta-llama/Llama-3.1-70B-Instruct")
|
|
|
|
| 17 |
from smolagents import HfApiModel, CodeAgent
|
| 18 |
|
| 19 |
# Authenticate with Hugging Face using environment token
|
| 20 |
+
login(token=os.getenv("HUGGINGFACEHUB_API_TOKEN"))
|
| 21 |
|
| 22 |
# Initialize LLM model and CodeAgent
|
| 23 |
llm_model = HfApiModel("meta-llama/Llama-3.1-70B-Instruct")
|