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