awacke1 commited on
Commit
c577d03
Β·
verified Β·
1 Parent(s): 893c369

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -749,10 +749,10 @@ def display_voice_tab():
749
  # β–Ά Update session state if changed
750
  if selected_voice != st.session_state['tts_voice']:
751
  st.session_state['tts_voice'] = selected_voice
752
- st.experimental_rerun()
753
  if selected_format.lower() != st.session_state['audio_format']:
754
  st.session_state['audio_format'] = selected_format.lower()
755
- st.experimental_rerun()
756
 
757
  # β–Ά Text Input
758
  user_text = st.text_area("πŸ’¬ Message:", height=100)
@@ -972,7 +972,7 @@ def main():
972
  # β–Ά Rerun if needed
973
  if st.session_state.should_rerun:
974
  st.session_state.should_rerun = False
975
- st.experimental_rerun()
976
 
977
  # ─────────────────────────────────────────────────────────
978
  # 8. RUN APP
 
749
  # β–Ά Update session state if changed
750
  if selected_voice != st.session_state['tts_voice']:
751
  st.session_state['tts_voice'] = selected_voice
752
+ st.rerun()
753
  if selected_format.lower() != st.session_state['audio_format']:
754
  st.session_state['audio_format'] = selected_format.lower()
755
+ st.rerun()
756
 
757
  # β–Ά Text Input
758
  user_text = st.text_area("πŸ’¬ Message:", height=100)
 
972
  # β–Ά Rerun if needed
973
  if st.session_state.should_rerun:
974
  st.session_state.should_rerun = False
975
+ st.rerun()
976
 
977
  # ─────────────────────────────────────────────────────────
978
  # 8. RUN APP