merterm commited on
Commit
14a9d01
·
verified ·
1 Parent(s): f865774

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -6
app.py CHANGED
@@ -590,13 +590,17 @@ def create_interface(users, chosen_image, reference_code):
590
  inputs=[], outputs=[demographic_survey, exit_page, download_button, notepad]
591
  )
592
 
593
- notepad.change(filter_paste,
594
- inputs=[previous_text, notepad],
595
- outputs=[previous_text, notepad], trigger_mode="always_last")
596
 
597
- notepad.change(save_notes_with_timestamp,
598
- inputs=[notepad, notes_state],
599
- outputs=[notes_state], trigger_mode="always_last")
 
 
 
 
600
 
601
  download_button.click(
602
  get_download_link,
 
590
  inputs=[], outputs=[demographic_survey, exit_page, download_button, notepad]
591
  )
592
 
593
+ # notepad.change(filter_paste,
594
+ # inputs=[previous_text, notepad],
595
+ # outputs=[previous_text, notepad], trigger_mode="always_last")
596
 
597
+ # notepad.change(save_notes_with_timestamp,
598
+ # inputs=[notepad, notes_state],
599
+ # outputs=[notes_state], trigger_mode="always_last")
600
+
601
+ demographic_survey_submit_button.click(save_notes_with_timestamp,
602
+ inputs=[notepad, notes_state],
603
+ outputs=[notes_state])
604
 
605
  download_button.click(
606
  get_download_link,