Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -390,7 +390,7 @@ def style_metric_container(label, value):
|
|
390 |
def generate_gpt_response(prompt):
|
391 |
# Ensure the API key is set securely
|
392 |
# You can use Streamlit's secrets management or environment variables
|
393 |
-
openai.api_key = "
|
394 |
|
395 |
# Define the system message and messages list
|
396 |
system_message = {
|
|
|
390 |
def generate_gpt_response(prompt):
|
391 |
# Ensure the API key is set securely
|
392 |
# You can use Streamlit's secrets management or environment variables
|
393 |
+
openai.api_key = os.getenv("GPT_TOKEN")
|
394 |
|
395 |
# Define the system message and messages list
|
396 |
system_message = {
|