Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,8 @@ def get_location_from_ip():
|
|
| 45 |
|
| 46 |
@tool("get_weather_by_location", args_schema=WeatherInput, return_direct=True)
|
| 47 |
def get_weather_by_location(city: str = None):
|
| 48 |
-
|
|
|
|
| 49 |
|
| 50 |
if not city:
|
| 51 |
location = get_location_from_ip()
|
|
|
|
| 45 |
|
| 46 |
@tool("get_weather_by_location", args_schema=WeatherInput, return_direct=True)
|
| 47 |
def get_weather_by_location(city: str = None):
|
| 48 |
+
|
| 49 |
+
"""Get the weather based on the user's location if no city is specified."""
|
| 50 |
|
| 51 |
if not city:
|
| 52 |
location = get_location_from_ip()
|