Update app.py
Browse files
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.
|
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.
|
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'):
|