Spaces:
Sleeping
Sleeping
Update app.py
Browse files48 unmodified lines4950515253545548 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)48 unmodified lines49505152535455565758596061626348 unmodified lines# Import tool from Hub#image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)image_generation_tool = Tool.from_space("black-forest-labs/FLUX.1-schnell",name="image_generator",description="Generate an image from a prompt")stabilityai/stable-diffusion-xl-base-1.0with open("prompts.yaml", 'r') as stream:prompt_templates = yaml.safe_load(stream)
app.py+9-1