yrobel-lima commited on
Commit
81b1a3b
·
verified ·
1 Parent(s): 21fd115

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,7 +33,7 @@ def initialize_session_state():
33
  )
34
  # Clear the memory
35
  st.session_state["memory"].clear()
36
- except OpenAIError:
37
  handle_errors()
38
  except Exception:
39
  handle_errors()
@@ -152,7 +152,7 @@ if __name__ == "__main__":
152
  )
153
  except openai.BadRequestError:
154
  handle_errors()
155
- except OpenAIError:
156
  handle_errors()
157
  except Exception:
158
  handle_errors()
 
33
  )
34
  # Clear the memory
35
  st.session_state["memory"].clear()
36
+ except openai.AuthenticationError:
37
  handle_errors()
38
  except Exception:
39
  handle_errors()
 
152
  )
153
  except openai.BadRequestError:
154
  handle_errors()
155
+ except openai.AuthenticationError:
156
  handle_errors()
157
  except Exception:
158
  handle_errors()