Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def get_weather(city: str) -> str:
|
|
44 |
cityName = weatherJSON.get('location').get('name')
|
45 |
cityTemp = weatherJSON.get('current').get('temp_c')
|
46 |
cityCondition = weatherJSON.get('current').get('condition').get('text')
|
47 |
-
return f"The current Temperature in {cityName} is {cityTemp} and conditions are {cityCondition}"
|
48 |
except Execution as e:
|
49 |
return f"Error fetching weather conditions for {city}"
|
50 |
|
|
|
44 |
cityName = weatherJSON.get('location').get('name')
|
45 |
cityTemp = weatherJSON.get('current').get('temp_c')
|
46 |
cityCondition = weatherJSON.get('current').get('condition').get('text')
|
47 |
+
return f"The current Temperature in {cityName} is {cityTemp} in degree celcius and conditions are {cityCondition}"
|
48 |
except Execution as e:
|
49 |
return f"Error fetching weather conditions for {city}"
|
50 |
|