Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -112,5 +112,11 @@ agent = CodeAgent(
|
|
| 112 |
prompt_templates=prompt_templates
|
| 113 |
)
|
| 114 |
|
|
|
|
| 115 |
|
| 116 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
prompt_templates=prompt_templates
|
| 113 |
)
|
| 114 |
|
| 115 |
+
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel
|
| 116 |
|
| 117 |
+
agent2 = CodeAgent(tools=[DuckDuckGoSearchTool()], model=HfApiModel())
|
| 118 |
+
|
| 119 |
+
#agent.run("Search for the best music recommendations for a party at the Wayne's mansion.")
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
GradioUI(agent2).launch()
|