emvecchi commited on
Commit
df15768
·
verified ·
1 Parent(s): 58b9079

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -124,14 +124,14 @@ fields: List[Field] = [
124
  Field(name="dialogue_name", type="input_col", title=""),
125
  ]),
126
 
127
- Field(type="expander", title="**Annotation 1: Session-/Patient-Specific Properties**", children=[
128
  Field(name="diagnosis_mention", type="likert_radio",
129
  title="Explicit mention of clinical diagnosis?", other_params={'labels': mentioned_y_n}, mandatory=True),
130
  Field(name="priority_level", type="likert_radio",
131
  title="Level of priority", other_params={'labels': priority_labels}, mandatory=True),
132
  ]),
133
 
134
- Field(type="expander", title="**Annotation 2: 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
  ]),
@@ -139,7 +139,7 @@ fields: List[Field] = [
139
  title="Select rupture markers noted in the session, include line numbers where rupture is found.", mandatory=False),
140
  ]),
141
 
142
- Field(type="expander", title="**Annotation 3: True-To-Patient-Prompt Features**", children=[
143
  Field(type="expander", title="**Patient Role Description:** *(expand)*", children=[
144
  Field(name="role_name", type="input_col", title=""),
145
  ]),
@@ -148,13 +148,13 @@ fields: List[Field] = [
148
  following_mandatory_values=[1]),
149
  ]),
150
 
151
- Field(type="expander", title="**Annotation 4: Rate the therapist**", children=[
152
  Field(name="empathy", type="y_n_radio",
153
  title="Was the therapist empathetic?", mandatory=True,
154
  following_mandatory_values=[1]),
155
  ]),
156
 
157
- Field(type="container", title="**Additional Comments** *(optional)*", children=[
158
  Field(name="other_comments", type="text", title="Please provide any additional details or information:", mandatory=False),
159
  ]),
160
  ]
@@ -507,7 +507,7 @@ def show_field(f: Field, index: int, data_collected):
507
  )
508
 
509
  elif f.name == 'patient' and value:
510
- st.markdown(f"### Patient:  {value}")
511
 
512
  elif value not in (None, np.nan, ""):
513
  if f.title:
 
124
  Field(name="dialogue_name", type="input_col", title=""),
125
  ]),
126
 
127
+ Field(type="container", title="##### Session-/Patient-Specific Properties", children=[
128
  Field(name="diagnosis_mention", type="likert_radio",
129
  title="Explicit mention of clinical diagnosis?", other_params={'labels': mentioned_y_n}, mandatory=True),
130
  Field(name="priority_level", type="likert_radio",
131
  title="Level of priority", other_params={'labels': priority_labels}, 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
  ]),
 
139
  title="Select rupture markers noted in the session, include line numbers where rupture is found.", mandatory=False),
140
  ]),
141
 
142
+ Field(type="container", title="##### True-To-Patient-Prompt Features", children=[
143
  Field(type="expander", title="**Patient Role Description:** *(expand)*", children=[
144
  Field(name="role_name", type="input_col", title=""),
145
  ]),
 
148
  following_mandatory_values=[1]),
149
  ]),
150
 
151
+ Field(type="container", title="##### Rate the therapist", children=[
152
  Field(name="empathy", type="y_n_radio",
153
  title="Was the therapist empathetic?", mandatory=True,
154
  following_mandatory_values=[1]),
155
  ]),
156
 
157
+ Field(type="container", title="##### Additional Comments *(optional)*", children=[
158
  Field(name="other_comments", type="text", title="Please provide any additional details or information:", mandatory=False),
159
  ]),
160
  ]
 
507
  )
508
 
509
  elif f.name == 'patient' and value:
510
+ st.markdown(f"#### Patient:  {value}")
511
 
512
  elif value not in (None, np.nan, ""):
513
  if f.title: