Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ if audio_bytes:
|
|
54 |
|
55 |
# Append new transcription to existing text
|
56 |
st.session_state.text_input = st.session_state.text_input + " " + transcribed_text
|
57 |
-
st.
|
58 |
|
59 |
except Exception as e:
|
60 |
st.error(f"Error: {str(e)}")
|
@@ -64,7 +64,7 @@ col1, col2 = st.columns(2)
|
|
64 |
with col1:
|
65 |
if st.button("Clear Text"):
|
66 |
st.session_state.text_input = ""
|
67 |
-
st.
|
68 |
with col2:
|
69 |
st.download_button(
|
70 |
"Download Text",
|
|
|
54 |
|
55 |
# Append new transcription to existing text
|
56 |
st.session_state.text_input = st.session_state.text_input + " " + transcribed_text
|
57 |
+
st.rerun() # Updated to use st.rerun() instead of experimental_rerun()
|
58 |
|
59 |
except Exception as e:
|
60 |
st.error(f"Error: {str(e)}")
|
|
|
64 |
with col1:
|
65 |
if st.button("Clear Text"):
|
66 |
st.session_state.text_input = ""
|
67 |
+
st.rerun() # Updated here as well
|
68 |
with col2:
|
69 |
st.download_button(
|
70 |
"Download Text",
|