MartinKosela commited on
Commit
fadb49d
·
1 Parent(s): 1e9b22e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -4,11 +4,11 @@ import openai
4
  import os
5
 
6
  # Securely fetch the OpenAI API key
7
- try:
8
- OPENAI_API_KEY = ('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')
9
- except openai.APIError as e:
10
  # Log the error for debugging purposes
11
- st.error("An error occurred while communicating with the OpenAI API.")
12
  # Optionally, log more detailed information for debugging
13
  print("Error details:", e)
14
  # You might also want to implement additional logic here, like retrying the request,
 
4
  import os
5
 
6
  # Securely fetch the OpenAI API key
7
+ #try:
8
+ OPENAI_API_KEY = ('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')
9
+ #except openai.APIError as e:
10
  # Log the error for debugging purposes
11
+ #st.error("An error occurred while communicating with the OpenAI API.")
12
  # Optionally, log more detailed information for debugging
13
  print("Error details:", e)
14
  # You might also want to implement additional logic here, like retrying the request,