Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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.
|
753 |
if selected_format.lower() != st.session_state['audio_format']:
|
754 |
st.session_state['audio_format'] = selected_format.lower()
|
755 |
-
st.
|
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.
|
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
|