lcapriles commited on
Commit
fa85ee1
·
verified ·
1 Parent(s): 63aa8a5

Updated menu tool

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -8,8 +8,8 @@ from tools.final_answer import FinalAnswerTool
8
  from Gradio_UI import GradioUI
9
 
10
 
11
- agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=HfApiModel())
12
- agent.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:
@@ -28,9 +28,9 @@ def suggest_menu(occasion: str) -> str:
28
  return "Custom menu for the butler."
29
 
30
  # Alfred, the butler, preparing the menu for the party
31
- agent = CodeAgent(tools=[suggest_menu], model=HfApiModel())
32
 
33
  # Preparing the menu for the party
34
- agent.run("Prepare a formal menu for the party.")
35
 
36
- GradioUI(agent).launch()
 
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:
 
28
  return "Custom menu for the butler."
29
 
30
  # Alfred, the butler, preparing the menu for the party
31
+ agent2 = CodeAgent(tools=[suggest_menu], model=HfApiModel())
32
 
33
  # Preparing the menu for the party
34
+ agent2.run("Prepare a formal menu for the party.")
35
 
36
+ #GradioUI(agent).launch()