Update app.py
Browse files
app.py
CHANGED
|
@@ -50,11 +50,11 @@ custom_role_conversions=None,
|
|
| 50 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 51 |
|
| 52 |
test_image = image_generation_tool(
|
| 53 |
-
"Dolly Parton performing on stage with a guitar"
|
| 54 |
)
|
| 55 |
|
| 56 |
-
print(
|
| 57 |
-
print(
|
| 58 |
|
| 59 |
with open("prompts.yaml", 'r') as stream:
|
| 60 |
prompt_templates = yaml.safe_load(stream)
|
|
|
|
| 50 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 51 |
|
| 52 |
test_image = image_generation_tool(
|
| 53 |
+
"A high-res, photorealistic image of Dolly Parton performing on stage with a guitar"
|
| 54 |
)
|
| 55 |
|
| 56 |
+
print("TYPE:", type(test_image))
|
| 57 |
+
print("SIZE:", test_image.size)
|
| 58 |
|
| 59 |
with open("prompts.yaml", 'r') as stream:
|
| 60 |
prompt_templates = yaml.safe_load(stream)
|