atejandro commited on
Commit
826c0fa
·
verified ·
1 Parent(s): 64719e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -51,13 +51,9 @@ custom_role_conversions=None,
51
 
52
 
53
  # Import tool from Hub
54
- image_generation_tool_2 = load_tool("agents-course/text-to-image", trust_remote_code=True)
55
 
56
- image_generation_tool = Tool.from_space(
57
- "black-forest-labs/FLUX.1-schnell",
58
- name="image_generator",
59
- description="Generate an image from a prompt"
60
- )
61
 
62
  with open("prompts.yaml", 'r') as stream:
63
  prompt_templates = yaml.safe_load(stream)
 
51
 
52
 
53
  # Import tool from Hub
54
+ # agents-course/text-to-image
55
 
56
+ image_generation_tool = load_tool("black-forest-labs/FLUX.1-schnell", trust_remote_code=True)
 
 
 
 
57
 
58
  with open("prompts.yaml", 'r') as stream:
59
  prompt_templates = yaml.safe_load(stream)