Spaces:
Sleeping
Sleeping
33 unmodified lines34353637383940414243444510 unmodified lines5657585960616233 unmodified linesexcept Exception as e:return f"Error fetching time for timezone '{timezone}': {str(e)}"image_generation_tool = Tool.from_space("black-forest-labs/FLUX.1-schnell",name="image_generator",description="Generate an image from a prompt")search_web = DuckDuckGoSearchTool()visit_page = VisitWebpageTool()final_answer = FinalAnswerTool()10 unmodified lines# Import tool from Hub#image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)with open("prompts.yaml", 'r') as stream:prompt_templates = yaml.safe_load(stream)33 unmodified lines34353637383910 unmodified lines5051525354555633 unmodified linesexcept Exception as e:return f"Error fetching time for timezone '{timezone}': {str(e)}"search_web = DuckDuckGoSearchTool()visit_page = VisitWebpageTool()final_answer = FinalAnswerTool()10 unmodified lines# Import tool from Hubimage_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)with open("prompts.yaml", 'r') as stream:prompt_templates = yaml.safe_load(stream)
app.py+1-7