Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 36 |
def get_weather(city: str) -> str:
|
| 37 |
"""A tool that fetches the current weather of a specified city.
|
| 38 |
Args:
|
| 39 |
-
|
| 40 |
"""
|
| 41 |
try:
|
| 42 |
requests.get('https://api.weatherapi.com/v1/current.json?key=41d95dfc59fb499583443528250902&q=' + city + '&aqi=no')
|
|
|
|
| 36 |
def get_weather(city: str) -> str:
|
| 37 |
"""A tool that fetches the current weather of a specified city.
|
| 38 |
Args:
|
| 39 |
+
city: A string representing a valid city (e.g., 'Bangalore').
|
| 40 |
"""
|
| 41 |
try:
|
| 42 |
requests.get('https://api.weatherapi.com/v1/current.json?key=41d95dfc59fb499583443528250902&q=' + city + '&aqi=no')
|