yahoo2010 commited on
Commit
90049df
·
verified ·
1 Parent(s): 55f85da

Update app.py

Browse files

update to alfred_agent

Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -120,12 +120,14 @@ custom_role_conversions=None,
120
  # Import tool from Hub
121
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
122
 
 
 
123
  with open("prompts.yaml", 'r') as stream:
124
  prompt_templates = yaml.safe_load(stream)
125
 
126
  agent = CodeAgent(
127
  model=model,
128
- tools=[get_hugging_face_top_daily_paper], ## add your tools here (don't remove final answer) #1-final_answer #2-get_hugging_face_top_daily_paper #3-get_current_time_in_timezone
129
  max_steps=6,
130
  verbosity_level=1,
131
  grammar=None,
 
120
  # Import tool from Hub
121
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
122
 
123
+ alfred_agent = agent.from_hub('sergiopaniego/AlfredAgent', trust_remote_code=True)
124
+
125
  with open("prompts.yaml", 'r') as stream:
126
  prompt_templates = yaml.safe_load(stream)
127
 
128
  agent = CodeAgent(
129
  model=model,
130
+ tools=[alfred_agent], ## add your tools here (don't remove final answer) #1-final_answer #2-get_hugging_face_top_daily_paper #3-get_current_time_in_timezone
131
  max_steps=6,
132
  verbosity_level=1,
133
  grammar=None,