Rathapoom commited on
Commit
77b3352
·
verified ·
1 Parent(s): 21cdc12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2456,7 +2456,7 @@ def main():
2456
  st.session_state.ending_type = ending_type
2457
  st.session_state.sentences_to_end = 5 # Set the countdown
2458
  st.success(f"โหมดจบเรื่องเริ่มต้นแล้ว! รูปแบบการจบ: {ending_type}")
2459
- st.experimental_rerun()
2460
 
2461
  # Show ending mode notification
2462
  if st.session_state.get('ending_mode'):
@@ -2501,7 +2501,7 @@ def main():
2501
  with col2:
2502
  if st.button("🔄 เริ่มเรื่องใหม่", use_container_width=True):
2503
  reset_story()
2504
- st.experimental_rerun()
2505
 
2506
  # Handle reset if needed
2507
  if st.session_state.get('should_reset'):
 
2456
  st.session_state.ending_type = ending_type
2457
  st.session_state.sentences_to_end = 5 # Set the countdown
2458
  st.success(f"โหมดจบเรื่องเริ่มต้นแล้ว! รูปแบบการจบ: {ending_type}")
2459
+ st.rerun()
2460
 
2461
  # Show ending mode notification
2462
  if st.session_state.get('ending_mode'):
 
2501
  with col2:
2502
  if st.button("🔄 เริ่มเรื่องใหม่", use_container_width=True):
2503
  reset_story()
2504
+ st.rerun()
2505
 
2506
  # Handle reset if needed
2507
  if st.session_state.get('should_reset'):