emvecchi commited on
Commit
5bfd47f
·
verified ·
1 Parent(s): 390fd45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -131,13 +131,13 @@ fields0: List[Field] = [
131
  other_params={'labels': mentioned_y_n}, mandatory=True),
132
  ]),
133
 
134
- Field(type="container", title="#### Rupture Markers", children=[
135
- Field(type="expander", title="**Overview of rupture markers** *(expand)*", children=[
136
- Field(type="markdown", title="", other_params={"path": "rupture_marker_overview.md"}),
137
- ]),
138
- Field(name="rupture_marker", type="rupture_markers",
139
- title="Select rupture markers noted in the session, include line numbers where rupture is found.", mandatory=False),
140
- ]),
141
  ]
142
  fields1: List[Field] = [
143
  Field(type="container", title="#### True-To-Patient-Prompt Features", children=[
@@ -881,7 +881,7 @@ if 'current_index' not in st.session_state:
881
  start_index = get_start_index()
882
 
883
  if start_index < len(st.session_state.data)-1:
884
- st.session_state.current_index = start_index-1
885
  else:
886
  st.session_state.current_index = start_index+1
887
  st.session_state.form_displayed = -2
@@ -936,7 +936,7 @@ elif st.session_state.current_index < len(st.session_state.data):
936
  # Action buttons
937
  c1, c2, c3 = st.columns([4,5,4])
938
  with c1:
939
- label = "**:green[Submit]**" if step < total_steps - 1 else "**:green[Submit & next session]**"
940
  if st.button(label):
941
  if validate_current_page(STEPS[step], st.session_state.current_index):
942
  is_last_page = (step == total_steps - 1)
@@ -952,7 +952,7 @@ elif st.session_state.current_index < len(st.session_state.data):
952
  st.session_state.step += 1
953
  st.rerun()
954
  with c2:
955
- if st.button(":gray[Previous]"):
956
  if step > 0:
957
  st.session_state.step -= 1
958
  st.rerun()
 
131
  other_params={'labels': mentioned_y_n}, mandatory=True),
132
  ]),
133
 
134
+ # Field(type="container", title="#### Rupture Markers", children=[
135
+ # Field(type="expander", title="**Overview of rupture markers** *(expand)*", children=[
136
+ # Field(type="markdown", title="", other_params={"path": "rupture_marker_overview.md"}),
137
+ # ]),
138
+ # Field(name="rupture_marker", type="rupture_markers",
139
+ # title="Select rupture markers noted in the session, include line numbers where rupture is found.", mandatory=False),
140
+ # ]),
141
  ]
142
  fields1: List[Field] = [
143
  Field(type="container", title="#### True-To-Patient-Prompt Features", children=[
 
881
  start_index = get_start_index()
882
 
883
  if start_index < len(st.session_state.data)-1:
884
+ st.session_state.current_index = start_index
885
  else:
886
  st.session_state.current_index = start_index+1
887
  st.session_state.form_displayed = -2
 
936
  # Action buttons
937
  c1, c2, c3 = st.columns([4,5,4])
938
  with c1:
939
+ label = "**Submit**" if step < total_steps - 1 else "**Submit & next session**"
940
  if st.button(label):
941
  if validate_current_page(STEPS[step], st.session_state.current_index):
942
  is_last_page = (step == total_steps - 1)
 
952
  st.session_state.step += 1
953
  st.rerun()
954
  with c2:
955
+ if st.button("Previous"):
956
  if step > 0:
957
  st.session_state.step -= 1
958
  st.rerun()