Spaces:
Sleeping
Sleeping
Update app.py
Browse filesfix unindent level line 51
app.py
CHANGED
|
@@ -47,8 +47,8 @@ def get_current_temperatur_on_location(lat: float, long: float, day: str)-> str:
|
|
| 47 |
|
| 48 |
data = Daily(location, start, end)
|
| 49 |
data = data.fetch()
|
| 50 |
-
return f"Temperature on location {lat,long} is {data}"
|
| 51 |
-
|
| 52 |
return f"Error fetching temperatur for location '{location}': {str(e)}"
|
| 53 |
|
| 54 |
|
|
|
|
| 47 |
|
| 48 |
data = Daily(location, start, end)
|
| 49 |
data = data.fetch()
|
| 50 |
+
return f"Temperature on location {lat,long} is {data} celsius"
|
| 51 |
+
except Exception as e:
|
| 52 |
return f"Error fetching temperatur for location '{location}': {str(e)}"
|
| 53 |
|
| 54 |
|