jancijen commited on
Commit
5e2fc07
·
verified ·
1 Parent(s): dbe4285

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -49,7 +49,15 @@ custom_role_conversions=None,
49
 
50
 
51
  # Import tool from Hub
52
- image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
 
 
 
 
 
 
 
 
53
 
54
  with open("prompts.yaml", 'r') as stream:
55
  prompt_templates = yaml.safe_load(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
+
60
+ stabilityai/stable-diffusion-xl-base-1.0
61
 
62
  with open("prompts.yaml", 'r') as stream:
63
  prompt_templates = yaml.safe_load(stream)