ombhojane commited on
Commit
a0d103e
·
1 Parent(s): b287331

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -92,7 +92,7 @@ def fetch_weather_condition(location, api_key):
92
 
93
  def generate_suggestions(location, current_temperature, min_temp_threshold, max_temp_threshold, weather_condition):
94
 
95
- openai.api_key = "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"
96
 
97
  if min_temp_threshold <= current_temperature <= max_temp_threshold:
98
  prompt = f"Provide suggestions for someone in {location} where it's {current_temperature}°C and {weather_condition}."
 
92
 
93
  def generate_suggestions(location, current_temperature, min_temp_threshold, max_temp_threshold, weather_condition):
94
 
95
+ openai.api_key = st.secrets["openai_api_key"]
96
 
97
  if min_temp_threshold <= current_temperature <= max_temp_threshold:
98
  prompt = f"Provide suggestions for someone in {location} where it's {current_temperature}°C and {weather_condition}."