emvecchi commited on
Commit
aa7d055
·
verified ·
1 Parent(s): 2f5f68d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -19
app.py CHANGED
@@ -134,15 +134,14 @@ fields1: List[Field] = [
134
  other_params={'labels': mentioned_y_n}, mandatory=True),
135
  ]),
136
 
137
- Field(type="container", title="#### Rupture Markers", children=[
138
- Field(type="expander", title="**Overview of rupture markers** *(expand)*", children=[
139
- Field(type="markdown", title="", other_params={"path": "rupture_marker_overview.md"}),
140
- ]),
141
- Field(name="rupture_marker", type="rupture_markers",
142
- title="Select rupture markers noted in the session, include line numbers where rupture is found.", mandatory=False),
143
- ]),
144
- ]
145
- fields2: List[Field] = [
146
  Field(type="container", title="#### True-To-Patient-Prompt Features", children=[
147
  Field(type="expander", title="**Patient Role Description:** *(expand)*", children=[
148
  Field(name="role_name", type="input_col", title=""),
@@ -201,12 +200,12 @@ fields2: List[Field] = [
201
  ]),
202
  ]
203
 
204
- STEPS: List[List[Field]] = [fields0, fields1, fields2]
205
 
206
- url_conditional_fields = [
207
- Field(name="skip", type="skip_checkbox",
208
- title="*I am uncomfortable annotating this text and voluntarily skip this instance*", mandatory=False)
209
- ]
210
  INPUT_FIELD_DEFAULT_VALUES = {'slider': 0,
211
  'text': '',
212
  'textarea': '',
@@ -270,11 +269,6 @@ def display_dialogue(hf_path: str):
270
  st.markdown(txt,
271
  unsafe_allow_html=True)
272
 
273
- def display_image(image_path):
274
- with hf_fs.open(image_path) as f:
275
- img = Image.open(f)
276
- st.image(img, caption='', use_column_width=True)
277
-
278
  def _ensure_key(key: str, default):
279
  if key not in st.session_state:
280
  st.session_state[key] = default
 
134
  other_params={'labels': mentioned_y_n}, mandatory=True),
135
  ]),
136
 
137
+ # Field(type="container", title="#### Rupture Markers", children=[
138
+ # Field(type="expander", title="**Overview of rupture markers** *(expand)*", children=[
139
+ # Field(type="markdown", title="", other_params={"path": "rupture_marker_overview.md"}),
140
+ # ]),
141
+ # Field(name="rupture_marker", type="rupture_markers",
142
+ # title="Select rupture markers noted in the session, include line numbers where rupture is found.", mandatory=False),
143
+ # ]),
144
+
 
145
  Field(type="container", title="#### True-To-Patient-Prompt Features", children=[
146
  Field(type="expander", title="**Patient Role Description:** *(expand)*", children=[
147
  Field(name="role_name", type="input_col", title=""),
 
200
  ]),
201
  ]
202
 
203
+ STEPS: List[List[Field]] = [fields0, fields1]
204
 
205
+ #url_conditional_fields = [
206
+ # Field(name="skip", type="skip_checkbox",
207
+ # title="*I am uncomfortable annotating this text and voluntarily skip this instance*", mandatory=False)
208
+ #]
209
  INPUT_FIELD_DEFAULT_VALUES = {'slider': 0,
210
  'text': '',
211
  'textarea': '',
 
269
  st.markdown(txt,
270
  unsafe_allow_html=True)
271
 
 
 
 
 
 
272
  def _ensure_key(key: str, default):
273
  if key not in st.session_state:
274
  st.session_state[key] = default