changed message to be shown when no text recognized
Browse files
app.py
CHANGED
@@ -304,8 +304,8 @@ def on_click_transcribe():
|
|
304 |
with st.spinner("Transcribing audio... this may take up to 30 seconds"):
|
305 |
option_1_text, option_2_text = transcribe_audio(
|
306 |
)
|
307 |
-
st.session_state.option_1 = option_1_text
|
308 |
-
st.session_state.option_2 = option_2_text
|
309 |
st.session_state.transcribed = True
|
310 |
st.session_state.option_1_model_name_state = ""
|
311 |
st.session_state.option_2_model_name_state = ""
|
|
|
304 |
with st.spinner("Transcribing audio... this may take up to 30 seconds"):
|
305 |
option_1_text, option_2_text = transcribe_audio(
|
306 |
)
|
307 |
+
st.session_state.option_1 = option_1_text if option_1_text else "* inaudible *"
|
308 |
+
st.session_state.option_2 = option_2_text if option_2_text else "* inaudible *"
|
309 |
st.session_state.transcribed = True
|
310 |
st.session_state.option_1_model_name_state = ""
|
311 |
st.session_state.option_2_model_name_state = ""
|