Update app.py

#1
by vinyosha - opened
Files changed (1) hide show
  1. app.py +3 -9
app.py CHANGED
@@ -1,11 +1,5 @@
1
- pip install smolagents -U
2
 
3
- from huggingface_hub import login
4
 
5
- login()
6
-
7
- ffrom smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel
8
-
9
- agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=HfApiModel())
10
-
11
- agent.run("Search for the best music recommendations for a party at the Wayne's mansion.")
 
1
+ from smolagents import CodeAgent, DuckDuckGoSearchTool, InferenceClientModel
2
 
3
+ agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=InferenceClientModel())
4
 
5
+ agent.run("Search for the best music recommendations for a party at the Wayne's mansion")