djunaim commited on
Commit
5eb56d4
·
verified ·
1 Parent(s): e214d35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ from huggingface_hub import login
2
+ from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel
3
+
4
+ login()
5
+
6
+
7
+ agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=HfApiModel())
8
+
9
+ agent.run("Search for the best music recommendations for a party at the Wayne's mansion.")