Poojashetty357 commited on
Commit
f78b91b
·
verified ·
1 Parent(s): 4847566

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ def weather_chat(city, custom_city, user_query):
45
  alert = "⚠️ You may want to postpone any outdoor events." if "rain" in condition or "storm" in condition else ""
46
  aqi_info = get_air_quality(lat, lon)
47
  messages = [
48
- {"role": "system", "content": "You are a helpful weather assistant. Give Celsius responses. Encourage user to be positive and appreciate the weather."},
49
  {"role": "user", "content": f"{report}\nTime: {time_context}\n{aqi_info}\n{alert}\nUser asked: {user_query}"}
50
  ]
51
  try:
 
45
  alert = "⚠️ You may want to postpone any outdoor events." if "rain" in condition or "storm" in condition else ""
46
  aqi_info = get_air_quality(lat, lon)
47
  messages = [
48
+ {"role": "system", "content": "You are a helpful weather assistant. Give Celsius responses. "},
49
  {"role": "user", "content": f"{report}\nTime: {time_context}\n{aqi_info}\n{alert}\nUser asked: {user_query}"}
50
  ]
51
  try: