Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ def image_generator(description: str)->Image.Image :
|
|
| 52 |
# output is a PIL.Image object
|
| 53 |
image = client.text_to_image(
|
| 54 |
prompt=description,
|
| 55 |
-
model="
|
| 56 |
)
|
| 57 |
return image
|
| 58 |
except Exception as e:
|
|
@@ -72,7 +72,7 @@ custom_role_conversions=None,
|
|
| 72 |
|
| 73 |
|
| 74 |
# Import tool from Hub
|
| 75 |
-
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 76 |
|
| 77 |
with open("prompts.yaml", 'r') as stream:
|
| 78 |
prompt_templates = yaml.safe_load(stream)
|
|
|
|
| 52 |
# output is a PIL.Image object
|
| 53 |
image = client.text_to_image(
|
| 54 |
prompt=description,
|
| 55 |
+
model="black-forest-labs/FLUX.1-schnell"
|
| 56 |
)
|
| 57 |
return image
|
| 58 |
except Exception as e:
|
|
|
|
| 72 |
|
| 73 |
|
| 74 |
# Import tool from Hub
|
| 75 |
+
# image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 76 |
|
| 77 |
with open("prompts.yaml", 'r') as stream:
|
| 78 |
prompt_templates = yaml.safe_load(stream)
|