Spaces:
Sleeping
Sleeping
Update app.py
Browse files49 unmodified lines505152535455565758596061626349 unmodified lines# Import tool from Hubimage_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)web_search_tool = DuckDuckGoSearchTool(max_results=5, rate_limit=2.0)with open("prompts.yaml", 'r') as stream:prompt_templates = yaml.safe_load(stream)agent = CodeAgent(model=model,tools=[web_search_tool, get_current_time_in_timezone, image_generation_tool ,final_answer], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,49 unmodified lines505152535455565758596061626349 unmodified lines# Import tool from Hubimage_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)web_search_tool = DuckDuckGoSearchTool(max_results=5)with open("prompts.yaml", 'r') as stream:prompt_templates = yaml.safe_load(stream)agent = CodeAgent(model=model,tools=[web_search_tool, get_current_time_in_timezone, image_generation_tool, final_answer], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,
app.py+2-2