Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def initialize_session_state():
|
|
33 |
)
|
34 |
# Clear the memory
|
35 |
st.session_state["memory"].clear()
|
36 |
-
except
|
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
|
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()
|