Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|