MartinKosela commited on
Commit
053b068
1 Parent(s): 2cb068a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -9
app.py CHANGED
@@ -3,16 +3,7 @@ import openai
3
  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.")
11
- # Optionally, log more detailed information for debugging
12
- #print("Error details:", e)
13
- # You might also want to implement additional logic here, like retrying the request,
14
- # sending a notification to an administrator, or providing a default response.
15
-
16
 
17
  KNOWN_MODELS = [
18
  # General ML models
 
3
  import os
4
 
5
  # Securely fetch the OpenAI API key
 
6
  openai.api_key = os.getenv("OPENAI_API_KEY")
 
 
 
 
 
 
 
 
7
 
8
  KNOWN_MODELS = [
9
  # General ML models