Spaces:
Sleeping
Sleeping
added new tool
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ def get_temperature(city:str)-> str: #it's import to specify the return type
|
|
| 13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 14 |
"""A tool that fetches the current temperature given the city name or location name
|
| 15 |
Args:
|
| 16 |
-
|
| 17 |
"""
|
| 18 |
url = f"https://wttr.in/{city}?format=%t"
|
| 19 |
try:
|
|
|
|
| 13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 14 |
"""A tool that fetches the current temperature given the city name or location name
|
| 15 |
Args:
|
| 16 |
+
city: A string representing the city name or location (e.g., 'New York').
|
| 17 |
"""
|
| 18 |
url = f"https://wttr.in/{city}?format=%t"
|
| 19 |
try:
|