Spaces:
Running
Running
openai internal server error
Browse files
app.py
CHANGED
@@ -372,12 +372,12 @@ if "audio" in locals():
|
|
372 |
with container_transcript_chat:
|
373 |
# get a summary of transcript from ChatGpt
|
374 |
st.session_state.messages[1]['content'] = st.session_state.messages[1]['content'].format(transcript_string)
|
375 |
-
|
376 |
init = get_initial_response(st.session_state.messages)
|
377 |
except openai.error.APIError:
|
378 |
# st.stop('It is not you. It is not this app. It is OpenAI API thats having issues.')
|
379 |
-
init = '
|
380 |
-
st.warning(
|
381 |
# pass transcript to initial prompt
|
382 |
|
383 |
|
|
|
372 |
with container_transcript_chat:
|
373 |
# get a summary of transcript from ChatGpt
|
374 |
st.session_state.messages[1]['content'] = st.session_state.messages[1]['content'].format(transcript_string)
|
375 |
+
try:
|
376 |
init = get_initial_response(st.session_state.messages)
|
377 |
except openai.error.APIError:
|
378 |
# st.stop('It is not you. It is not this app. It is OpenAI API thats having issues.')
|
379 |
+
init = ''
|
380 |
+
st.warning('OpenAI API is having issues. Hope they resolve it soon. Refer to https://status.openai.com/')
|
381 |
# pass transcript to initial prompt
|
382 |
|
383 |
|