Update app.py
Browse files
app.py
CHANGED
@@ -705,15 +705,26 @@ def create_interface():
|
|
705 |
return "오류가 발생했습니다.", []
|
706 |
|
707 |
# 이벤트 연결
|
708 |
-
|
709 |
fn=handle_name_submit,
|
710 |
-
inputs=[name_input, state],
|
711 |
outputs=[welcome_section, story_section, blessing_section, entry_guide_section, state]
|
712 |
)
|
713 |
|
714 |
-
|
715 |
-
fn=
|
716 |
-
outputs=[story_section, blessing_section]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
717 |
)
|
718 |
|
719 |
play_music_btn.click(
|
@@ -722,7 +733,7 @@ def create_interface():
|
|
722 |
)
|
723 |
|
724 |
save_btn.click(
|
725 |
-
fn=handle_save_reflection
|
726 |
inputs=[reflection_input, state],
|
727 |
outputs=[state, reflections_display]
|
728 |
)
|
@@ -749,27 +760,6 @@ def create_interface():
|
|
749 |
inputs=[final_reflection, state],
|
750 |
outputs=[baseline_status, wishes_display]
|
751 |
)
|
752 |
-
name_submit_btn.click(
|
753 |
-
fn=handle_name_submit,
|
754 |
-
inputs=[name_input, state],
|
755 |
-
outputs=[welcome_section, story_section, blessing_section, entry_guide_section, state]
|
756 |
-
)
|
757 |
-
|
758 |
-
continue_btn.click(
|
759 |
-
fn=handle_continue,
|
760 |
-
outputs=[story_section, welcome_section, blessing_section, entry_guide_section]
|
761 |
-
)
|
762 |
-
|
763 |
-
set_baseline_btn.click(
|
764 |
-
fn=handle_blessing_complete,
|
765 |
-
inputs=[baseline_audio, state],
|
766 |
-
outputs=[state, baseline_status, blessing_section, entry_guide_section]
|
767 |
-
)
|
768 |
-
|
769 |
-
enter_btn.click(
|
770 |
-
fn=handle_enter,
|
771 |
-
outputs=[tabs]
|
772 |
-
)
|
773 |
return app
|
774 |
|
775 |
if __name__ == "__main__":
|
|
|
705 |
return "오류가 발생했습니다.", []
|
706 |
|
707 |
# 이벤트 연결
|
708 |
+
name_submit_btn.click(
|
709 |
fn=handle_name_submit,
|
710 |
+
inputs=[name_input, state],
|
711 |
outputs=[welcome_section, story_section, blessing_section, entry_guide_section, state]
|
712 |
)
|
713 |
|
714 |
+
continue_btn.click(
|
715 |
+
fn=handle_continue,
|
716 |
+
outputs=[story_section, welcome_section, blessing_section, entry_guide_section]
|
717 |
+
)
|
718 |
+
|
719 |
+
set_baseline_btn.click(
|
720 |
+
fn=handle_blessing_complete,
|
721 |
+
inputs=[baseline_audio, state],
|
722 |
+
outputs=[state, baseline_status, blessing_section, entry_guide_section]
|
723 |
+
)
|
724 |
+
|
725 |
+
enter_btn.click(
|
726 |
+
fn=handle_enter,
|
727 |
+
outputs=[tabs]
|
728 |
)
|
729 |
|
730 |
play_music_btn.click(
|
|
|
733 |
)
|
734 |
|
735 |
save_btn.click(
|
736 |
+
fn=save_reflection_fixed, # handle_save_reflection -> save_reflection_fixed
|
737 |
inputs=[reflection_input, state],
|
738 |
outputs=[state, reflections_display]
|
739 |
)
|
|
|
760 |
inputs=[final_reflection, state],
|
761 |
outputs=[baseline_status, wishes_display]
|
762 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
763 |
return app
|
764 |
|
765 |
if __name__ == "__main__":
|