Spaces:
Sleeping
Sleeping
Commit
·
8afcdb2
1
Parent(s):
51a009a
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 = 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.")
|
|
|
|
| 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.")
|