Edenbaba commited on
Commit
586fed3
·
verified ·
1 Parent(s): 88a2d34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -97,14 +97,15 @@ class SuperheroPartyThemeTool(Tool):
97
 
98
  return themes.get(category.lower(), "Themed party idea not found. Try 'classic heroes', 'villain masquerade', or 'futuristic Gotham'.")
99
 
100
- image_generation_tool = Tool.from_space(
 
 
 
101
  "black-forest-labs/FLUX.1-schnell",
102
- name="image_generator",
103
  description="Generate an image from a prompt"
104
  )
105
 
106
- # Import tool from Hub
107
- image_generation_tool2 = load_tool("agents-course/text-to-image", trust_remote_code=True)
108
 
109
  final_answer = FinalAnswerTool()
110
  web_search = DuckDuckGoSearchTool()
 
97
 
98
  return themes.get(category.lower(), "Themed party idea not found. Try 'classic heroes', 'villain masquerade', or 'futuristic Gotham'.")
99
 
100
+ # Import tool from Hub
101
+ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
102
+
103
+ image_generation_tool2 = Tool.from_space(
104
  "black-forest-labs/FLUX.1-schnell",
105
+ name="image_generator2",
106
  description="Generate an image from a prompt"
107
  )
108
 
 
 
109
 
110
  final_answer = FinalAnswerTool()
111
  web_search = DuckDuckGoSearchTool()