Spaces:
Sleeping
Sleeping
Update with only one tool
Browse files
app.py
CHANGED
|
@@ -8,8 +8,8 @@ from tools.final_answer import FinalAnswerTool
|
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
|
| 11 |
-
agent1 = CodeAgent(tools=[DuckDuckGoSearchTool()], model=HfApiModel())
|
| 12 |
-
agent1.run("Search for the best music recommendations for a party at the Wayne's mansion.")
|
| 13 |
|
| 14 |
# Tool to suggest a menu based on the occasion
|
| 15 |
def suggest_menu(occasion: str) -> str:
|
|
@@ -33,4 +33,4 @@ agent2 = CodeAgent(tools=[suggest_menu], model=HfApiModel())
|
|
| 33 |
# Preparing the menu for the party
|
| 34 |
agent2.run("Prepare a formal menu for the party.")
|
| 35 |
|
| 36 |
-
|
|
|
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
|
| 11 |
+
#agent1 = CodeAgent(tools=[DuckDuckGoSearchTool()], model=HfApiModel())
|
| 12 |
+
#agent1.run("Search for the best music recommendations for a party at the Wayne's mansion.")
|
| 13 |
|
| 14 |
# Tool to suggest a menu based on the occasion
|
| 15 |
def suggest_menu(occasion: str) -> str:
|
|
|
|
| 33 |
# Preparing the menu for the party
|
| 34 |
agent2.run("Prepare a formal menu for the party.")
|
| 35 |
|
| 36 |
+
GradioUI(agent).launch()
|