Spaces:
Sleeping
Sleeping
zasharepw77
commited on
Commit
·
89471f6
1
Parent(s):
0256c0c
Add application file 5
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
from smolagents import CodeAgent, DuckDuckGoSearchTool, FinalAnswerTool, HfApiModel, Tool, tool, VisitWebpageTool
|
|
|
|
| 2 |
|
| 3 |
@tool
|
| 4 |
def suggest_menu(occasion: str) -> str:
|
|
@@ -72,7 +73,8 @@ agent = CodeAgent(
|
|
| 72 |
],
|
| 73 |
model=HfApiModel(),
|
| 74 |
max_steps=10,
|
| 75 |
-
verbosity_level=2
|
|
|
|
| 76 |
)
|
| 77 |
|
| 78 |
agent.run("Give me the best playlist for a party at the Wayne's mansion. The party idea is a 'villain masquerade' theme")
|
|
|
|
| 1 |
from smolagents import CodeAgent, DuckDuckGoSearchTool, FinalAnswerTool, HfApiModel, Tool, tool, VisitWebpageTool
|
| 2 |
+
import os
|
| 3 |
|
| 4 |
@tool
|
| 5 |
def suggest_menu(occasion: str) -> str:
|
|
|
|
| 73 |
],
|
| 74 |
model=HfApiModel(),
|
| 75 |
max_steps=10,
|
| 76 |
+
verbosity_level=2,
|
| 77 |
+
token=os.getenv('hf_token'),
|
| 78 |
)
|
| 79 |
|
| 80 |
agent.run("Give me the best playlist for a party at the Wayne's mansion. The party idea is a 'villain masquerade' theme")
|