Spaces:
Sleeping
Sleeping
Commit
·
51a009a
1
Parent(s):
c66ba36
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import os
|
|
| 4 |
|
| 5 |
# Securely fetch the OpenAI API key
|
| 6 |
#try:
|
| 7 |
-
openai.api_key =
|
| 8 |
#except openai.APIError as e:
|
| 9 |
# Log the error for debugging purposes
|
| 10 |
#st.error("An error occurred while communicating with the OpenAI API.")
|
|
|
|
| 4 |
|
| 5 |
# Securely fetch the OpenAI API key
|
| 6 |
#try:
|
| 7 |
+
openai.api_key = os.getenv("OPENAI_API_KEY)")
|
| 8 |
#except openai.APIError as e:
|
| 9 |
# Log the error for debugging purposes
|
| 10 |
#st.error("An error occurred while communicating with the OpenAI API.")
|