MartinKosela commited on
Commit
51a009a
·
1 Parent(s): c66ba36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import os
4
 
5
  # Securely fetch the OpenAI API key
6
  #try:
7
- openai.api_key = API
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.")