iisadia commited on
Commit
105da9b
·
verified ·
1 Parent(s): 1f3ee6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.experimental_rerun() # Refresh to update text area
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.experimental_rerun()
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",