emvecchi commited on
Commit
7104701
·
verified ·
1 Parent(s): 72d052b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -685,6 +685,10 @@ def add_checked_submit():
685
  check = st.checkbox('I agree', key='consent')
686
  add_validated_submit([check], "Please agree to give your consent to proceed")
687
 
 
 
 
 
688
  def load_text(path: str) -> str:
689
  if filesystem == 'hf':
690
  with hf_fs.open(path, "rb") as f:
@@ -699,10 +703,10 @@ if st.session_state.current_index == -3:
699
  add_checked_submit()
700
 
701
  elif st.session_state.current_index == -2:
702
- with st.form("intro_form"):
703
  st.markdown("# Annotation Guidelines")
704
  st.markdown(load_text("guidelines.md"))
705
- show_fields(annotation_guidelines_fields)
706
 
707
  elif st.session_state.current_index == -1:
708
  if st.session_state.get('user_id') and st.session_state.get("batch"):
 
685
  check = st.checkbox('I agree', key='consent')
686
  add_validated_submit([check], "Please agree to give your consent to proceed")
687
 
688
+ def add_guidelines_submit():
689
+ check = st.checkbox('I have read carefully', key='guidelines')
690
+ add_validated_submit([check], "I have read the guidelines in detail, and I understand the study")
691
+
692
  def load_text(path: str) -> str:
693
  if filesystem == 'hf':
694
  with hf_fs.open(path, "rb") as f:
 
703
  add_checked_submit()
704
 
705
  elif st.session_state.current_index == -2:
706
+ with st.form("data_form"):
707
  st.markdown("# Annotation Guidelines")
708
  st.markdown(load_text("guidelines.md"))
709
+ add_guidelines_submit()
710
 
711
  elif st.session_state.current_index == -1:
712
  if st.session_state.get('user_id') and st.session_state.get("batch"):