Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,10 @@
|
|
1 |
-
from smolagents import CodeAgent
|
|
|
|
|
|
|
2 |
import os
|
3 |
|
4 |
-
model = HfApiModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct", token=os.getenv('Testing')
|
5 |
)
|
6 |
agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model)
|
7 |
|
|
|
1 |
+
from smolagents import CodeAgent
|
2 |
+
#from smolagents import HfApiModel
|
3 |
+
#from smolagents import DuckDuckGoSearchTool
|
4 |
+
import huggingface_hub
|
5 |
import os
|
6 |
|
7 |
+
model = huggingface_hub.HfApiModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct", token=os.getenv('Testing')
|
8 |
)
|
9 |
agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model)
|
10 |
|