rahulnamdev commited on
Commit
c31e5ec
·
verified ·
1 Parent(s): 8c91337

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -1,7 +1,10 @@
1
- from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel
 
 
 
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