Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,6 +67,8 @@ custom_role_conversions=None,
|
|
| 67 |
|
| 68 |
# Import tool from Hub
|
| 69 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
|
|
|
|
|
|
| 70 |
|
| 71 |
with open("prompts.yaml", 'r') as stream:
|
| 72 |
prompt_templates = yaml.safe_load(stream)
|
|
|
|
| 67 |
|
| 68 |
# Import tool from Hub
|
| 69 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 70 |
+
image = image_generation_tool(prompt="Image of a sleeping cat")
|
| 71 |
+
final_answer(image)
|
| 72 |
|
| 73 |
with open("prompts.yaml", 'r') as stream:
|
| 74 |
prompt_templates = yaml.safe_load(stream)
|