jpuri commited on
Commit
15e5535
·
1 Parent(s): 7f47720

Updating model

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,9 +1,9 @@
1
  # Create a CodeAgent with DuckDuckGo search capability
2
- from smolagents import CodeAgent, DuckDuckGoSearchTool, GradioUI, HfApiModel
3
 
4
  agent = CodeAgent(
5
  tools=[DuckDuckGoSearchTool()],
6
- model=HfApiModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct")
7
  )
8
 
9
  if __name__ == "__main__":
 
1
  # Create a CodeAgent with DuckDuckGo search capability
2
+ from smolagents import CodeAgent, DuckDuckGoSearchTool, GradioUI, InferenceClientModel
3
 
4
  agent = CodeAgent(
5
  tools=[DuckDuckGoSearchTool()],
6
+ model=InferenceClientModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct")
7
  )
8
 
9
  if __name__ == "__main__":