javiergrandat commited on
Commit
286c2f3
·
verified ·
1 Parent(s): 991ecac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -32,7 +32,9 @@ def get_weather(latitude: float, longitude: float) -> str:
32
  print(response)
33
  weather_data = response.json()
34
  print(weather_data)
35
- return json.dumps(weather_data)
 
 
36
  except Exception as e:
37
  return f"Error fetching weather"
38
 
 
32
  print(response)
33
  weather_data = response.json()
34
  print(weather_data)
35
+ json_w = json.dumps(weather_data)
36
+ print(json_w)
37
+ return json_w
38
  except Exception as e:
39
  return f"Error fetching weather"
40