Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,11 +34,12 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
35 |
|
36 |
@tool
|
37 |
-
def image_generation_tool
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
|
|
42 |
|
43 |
final_answer = FinalAnswerTool()
|
44 |
|
|
|
34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
35 |
|
36 |
@tool
|
37 |
+
def image_generation_tool():
|
38 |
+
return Tool.from_space(
|
39 |
+
"black-forest-labs/FLUX.1-schnell",
|
40 |
+
name="image_generator",
|
41 |
+
description="Generate an image from a prompt"
|
42 |
+
)
|
43 |
|
44 |
final_answer = FinalAnswerTool()
|
45 |
|