Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,6 +38,13 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 38 |
except Exception as e:
|
| 39 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
final_answer = FinalAnswerTool()
|
| 43 |
|
|
|
|
| 38 |
except Exception as e:
|
| 39 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 40 |
|
| 41 |
+
@tool
|
| 42 |
+
def number_of_letters_in_strawberry()->str:
|
| 43 |
+
"""A tool that returns the number of letters in strawberry
|
| 44 |
+
Args:
|
| 45 |
+
None
|
| 46 |
+
"""
|
| 47 |
+
return ("The number of letters in strawberry is 5.")
|
| 48 |
|
| 49 |
final_answer = FinalAnswerTool()
|
| 50 |
|