imhuling commited on
Commit
4f465fc
·
verified ·
1 Parent(s): c1f112a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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)