Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -145,7 +145,11 @@ model = HfApiModel(
|
|
| 145 |
custom_role_conversions=None,
|
| 146 |
)
|
| 147 |
|
| 148 |
-
image_generation_tool =
|
|
|
|
|
|
|
|
|
|
|
|
|
| 149 |
|
| 150 |
with open("prompts.yaml", 'r') as stream:
|
| 151 |
prompt_templates = yaml.safe_load(stream)
|
|
|
|
| 145 |
custom_role_conversions=None,
|
| 146 |
)
|
| 147 |
|
| 148 |
+
image_generation_tool = Tool.from_space(
|
| 149 |
+
"black-forest-labs/FLUX.1-schnell",
|
| 150 |
+
name="image_generator", # You can name it whatever makes sense for your agent
|
| 151 |
+
description="Generate an image from a prompt"
|
| 152 |
+
)
|
| 153 |
|
| 154 |
with open("prompts.yaml", 'r') as stream:
|
| 155 |
prompt_templates = yaml.safe_load(stream)
|