BoghdadyJR commited on
Commit
822870c
·
verified ·
1 Parent(s): b8dcaa1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ class WeatherInput(BaseModel):
50
  def get_weather_by_location(city: str = None):
51
  """Get the weather based on the user's location if no city is specified."""
52
 
53
- if not city:
54
  location = get_location_from_ip()
55
  city = location['city']
56
 
 
50
  def get_weather_by_location(city: str = None):
51
  """Get the weather based on the user's location if no city is specified."""
52
 
53
+ if city=='':
54
  location = get_location_from_ip()
55
  city = location['city']
56