Spaces:
Sleeping
Sleeping
Update image_generation_tool
Browse files
app.py
CHANGED
|
@@ -48,7 +48,11 @@ custom_role_conversions=None,
|
|
| 48 |
|
| 49 |
|
| 50 |
# Import tool from Hub
|
| 51 |
-
image_generation_tool =
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
with open("prompts.yaml", 'r') as stream:
|
| 54 |
prompt_templates = yaml.safe_load(stream)
|
|
|
|
| 48 |
|
| 49 |
|
| 50 |
# Import tool from Hub
|
| 51 |
+
image_generation_tool = Tool.from_space(
|
| 52 |
+
"black-forest-labs/FLUX.1-schnell",
|
| 53 |
+
name="image_generator",
|
| 54 |
+
description="Generate an image from a prompt"
|
| 55 |
+
)
|
| 56 |
|
| 57 |
with open("prompts.yaml", 'r') as stream:
|
| 58 |
prompt_templates = yaml.safe_load(stream)
|