david-clifford commited on
Commit
8e3026d
·
verified ·
1 Parent(s): cbe992d

Update trust_remote_code=True for visit_webpage_tool

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,14 +49,14 @@ model = HfApiModel(
49
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True) ## https://huggingface.co/spaces/agents-course/text-to-image
50
 
51
  # Import other tools
52
- visit_webage_tool = load_tool("tools/visit_webpage.py")
53
 
54
  with open("prompts.yaml", 'r') as stream:
55
  prompt_templates = yaml.safe_load(stream)
56
 
57
  agent = CodeAgent(
58
  model=model,
59
- tools=[final_answer, get_current_time_in_timezone, image_generation_tool, visit_webage_tool], ## add your tools here (don't remove final answer)
60
  max_steps=6,
61
  verbosity_level=1,
62
  grammar=None,
 
49
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True) ## https://huggingface.co/spaces/agents-course/text-to-image
50
 
51
  # Import other tools
52
+ visit_webpage_tool = load_tool("tools/visit_webpage.py",trust_remote_code=True)
53
 
54
  with open("prompts.yaml", 'r') as stream:
55
  prompt_templates = yaml.safe_load(stream)
56
 
57
  agent = CodeAgent(
58
  model=model,
59
+ tools=[final_answer, get_current_time_in_timezone, image_generation_tool, visit_webpage_tool], ## add your tools here (don't remove final answer)
60
  max_steps=6,
61
  verbosity_level=1,
62
  grammar=None,