Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,13 +49,13 @@ custom_role_conversions=None,
|
|
| 49 |
|
| 50 |
|
| 51 |
# Import tool from Hub
|
| 52 |
-
|
| 53 |
|
| 54 |
-
image_generation_tool = Tool.from_space(
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
)
|
| 59 |
# stabilityai/stable-diffusion-xl-base-1.0
|
| 60 |
|
| 61 |
with open("prompts.yaml", 'r') as stream:
|
|
|
|
| 49 |
|
| 50 |
|
| 51 |
# Import tool from Hub
|
| 52 |
+
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 53 |
|
| 54 |
+
# image_generation_tool = Tool.from_space(
|
| 55 |
+
# "black-forest-labs/FLUX.1-schnell",
|
| 56 |
+
# name="image_generator",
|
| 57 |
+
# description="Generate an image from a prompt"
|
| 58 |
+
# )
|
| 59 |
# stabilityai/stable-diffusion-xl-base-1.0
|
| 60 |
|
| 61 |
with open("prompts.yaml", 'r') as stream:
|