Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -374,8 +374,12 @@ def main():
|
|
374 |
|
375 |
# Audio, transcribe, GPT:
|
376 |
filename = save_and_play_audio(audio_recorder)
|
|
|
377 |
if filename is not None:
|
378 |
-
|
|
|
|
|
|
|
379 |
st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
|
380 |
filename = None
|
381 |
|
|
|
374 |
|
375 |
# Audio, transcribe, GPT:
|
376 |
filename = save_and_play_audio(audio_recorder)
|
377 |
+
|
378 |
if filename is not None:
|
379 |
+
try:
|
380 |
+
transcription = transcribe_audio(filename, "whisper-1")
|
381 |
+
except:
|
382 |
+
st.write(' ')
|
383 |
st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
|
384 |
filename = None
|
385 |
|