Spaces:
Sleeping
Sleeping
Update image_generation_tool
Browse files47 unmodified lines4849505152535447 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)47 unmodified lines484950515253545556575847 unmodified lines# Import tool from Hubimage_generation_tool = Tool.from_space("black-forest-labs/FLUX.1-schnell",name="image_generator",description="Generate an image from a prompt")with open("prompts.yaml", 'r') as stream:prompt_templates = yaml.safe_load(stream)
app.py+5-1