shmulc commited on
Commit
396d7ee
·
verified ·
1 Parent(s): 7e3e1b0

Update image_generation_tool

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