Ulduz commited on
Commit
fed0d32
·
verified ·
1 Parent(s): bf66515

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -87,7 +87,12 @@ custom_role_conversions=None,
87
 
88
 
89
  # Import tool from Hub
90
- image_generation_tool = load_tool("black-forest-labs/FLUX.1-dev", trust_remote_code=True)
 
 
 
 
 
91
 
92
  with open("prompts.yaml", 'r') as stream:
93
  prompt_templates = yaml.safe_load(stream)
 
87
 
88
 
89
  # Import tool from Hub
90
+ #image_generation_tool = load_tool("black-forest-labs/FLUX.1-dev", trust_remote_code=True)
91
+ image_generation_tool = Tool.from_space(
92
+ "black-forest-labs/FLUX.1-schnell",
93
+ name="image_generator",
94
+ description="Generate an image from a prompt"
95
+ )
96
 
97
  with open("prompts.yaml", 'r') as stream:
98
  prompt_templates = yaml.safe_load(stream)