Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 = "
|
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}."
|