Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
| 101 |
"black-forest-labs/FLUX.1-schnell",
|
| 102 |
-
name="
|
| 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()
|