agentzero07 commited on
Commit
45d7119
·
verified ·
1 Parent(s): 14631a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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