Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,12 +20,12 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 20 |
return "What magic will you build ?"
|
| 21 |
|
| 22 |
@tool
|
| 23 |
-
def get_datetime_format(
|
| 24 |
"""Get the datetime format string for a specific country.
|
| 25 |
Args:
|
| 26 |
-
|
| 27 |
"""
|
| 28 |
-
match
|
| 29 |
# European formats
|
| 30 |
case 'FR' | 'DE' | 'AT' | 'CH':
|
| 31 |
return "%d.%m.%Y %H:%M:%S"
|
|
|
|
| 20 |
return "What magic will you build ?"
|
| 21 |
|
| 22 |
@tool
|
| 23 |
+
def get_datetime_format(countrycode:str)-> str:
|
| 24 |
"""Get the datetime format string for a specific country.
|
| 25 |
Args:
|
| 26 |
+
countrycode: Two-letter country code (e.g., 'US', 'FR')
|
| 27 |
"""
|
| 28 |
+
match countrycode.upper():
|
| 29 |
# European formats
|
| 30 |
case 'FR' | 'DE' | 'AT' | 'CH':
|
| 31 |
return "%d.%m.%Y %H:%M:%S"
|