emvecchi commited on
Commit
678ddd4
·
verified ·
1 Parent(s): 7af6f05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -47,7 +47,7 @@ to_annotate_file_name = 'to_annotate.csv' # CSV file to annotate
47
  COLS_TO_SAVE = ['dialogue_id','dialogue_name','generatedPatient']
48
 
49
  agreement_labels = ['strongly disagree', 'disagree', 'neither agree no disagree', 'agree', 'strongly agree']
50
- mentioned_y_n = ['yes explicitly', 'yes implicitly', 'no', 'not sure']
51
  quality_labels = ['very poor', 'poor', 'acceptable', 'good', 'very good']
52
  priority_labels = ['not a priority', 'low priority', 'neutral', 'moderate priority', 'high priority']
53
  yes_no_labels = ['no','yes']
@@ -118,18 +118,18 @@ Please indicate, in the box below, that you are at least 18 years old, have read
118
 
119
  fields: List[Field] = [
120
  Field(name="patient", type="input_col", title=" "),
121
- Field(type="expander", title="## Session Transcription: *(expand)*", children=[
122
  Field(name="dialogue_name", type="input_col", title=""),
123
  ]),
124
 
125
- Field(type="container", title="## Session-/Patient-Specific Properties", children=[
126
- Field(name="to_moderate", type="y_n_radio",
127
  title="Explicit mention of clinical diagnosis?", other_params={'labels': mentioned_y_n}, mandatory=True),
128
  Field(name="priority_level", type="likert_radio",
129
  title="Level of priority", other_params={'labels': priority_labels}, mandatory=True),
130
  ]),
131
 
132
- Field(type="container", title="## Rupture Markers", children=[
133
  Field(name="rupture_markers", type="rupture_markers",
134
  title="Select rupture markers noted in the session, include line numbers where rupture is found.", mandatory=False),
135
  # Field(name="rupture_marker", type="multiselect",
@@ -139,20 +139,20 @@ fields: List[Field] = [
139
  # Field(name="rupture_marker_other", type="text", title="*If Other, please specify:*", mandatory=False),
140
  ]),
141
 
142
- Field(type="container", title="**True-To-Patient-Prompt Properties**", children=[
143
  Field(name="helpful", type="y_n_radio",
144
  title="Did the patient remain true to the provided patient prompt?", mandatory=True,
145
  following_mandatory_values=[1]),
146
  ]),
147
 
148
- Field(type="container", title="**Rate the therapist**", children=[
149
  Field(name="empathy", type="y_n_radio",
150
  title="Was the therapist empathetic?", mandatory=True,
151
  following_mandatory_values=[1]),
152
  ]),
153
 
154
- Field(type="container", title="**Other**", children=[
155
- Field(name="other_comments", type="text", title="Please provide any additional details or information: *(optional)*", mandatory=False),
156
  ]),
157
  ]
158
  url_conditional_fields = [
 
47
  COLS_TO_SAVE = ['dialogue_id','dialogue_name','generatedPatient']
48
 
49
  agreement_labels = ['strongly disagree', 'disagree', 'neither agree no disagree', 'agree', 'strongly agree']
50
+ mentioned_y_n = ['yes, explicitly', 'yes, implicitly', 'no', 'not sure']
51
  quality_labels = ['very poor', 'poor', 'acceptable', 'good', 'very good']
52
  priority_labels = ['not a priority', 'low priority', 'neutral', 'moderate priority', 'high priority']
53
  yes_no_labels = ['no','yes']
 
118
 
119
  fields: List[Field] = [
120
  Field(name="patient", type="input_col", title=" "),
121
+ Field(type="expander", title="### Session Transcription: *(expand)*", children=[
122
  Field(name="dialogue_name", type="input_col", title=""),
123
  ]),
124
 
125
+ Field(type="container", title="### Session-/Patient-Specific Properties", children=[
126
+ Field(name="to_moderate", type="likert_radio",
127
  title="Explicit mention of clinical diagnosis?", other_params={'labels': mentioned_y_n}, mandatory=True),
128
  Field(name="priority_level", type="likert_radio",
129
  title="Level of priority", other_params={'labels': priority_labels}, mandatory=True),
130
  ]),
131
 
132
+ Field(type="container", title="### Rupture Markers", children=[
133
  Field(name="rupture_markers", type="rupture_markers",
134
  title="Select rupture markers noted in the session, include line numbers where rupture is found.", mandatory=False),
135
  # Field(name="rupture_marker", type="multiselect",
 
139
  # Field(name="rupture_marker_other", type="text", title="*If Other, please specify:*", mandatory=False),
140
  ]),
141
 
142
+ Field(type="container", title="### True-To-Patient-Prompt Features", children=[
143
  Field(name="helpful", type="y_n_radio",
144
  title="Did the patient remain true to the provided patient prompt?", mandatory=True,
145
  following_mandatory_values=[1]),
146
  ]),
147
 
148
+ Field(type="container", title="### Rate the therapist", children=[
149
  Field(name="empathy", type="y_n_radio",
150
  title="Was the therapist empathetic?", mandatory=True,
151
  following_mandatory_values=[1]),
152
  ]),
153
 
154
+ Field(type="container", title="### Additional Comments *(optional)*", children=[
155
+ Field(name="other_comments", type="text", title="Please provide any additional details or information:", mandatory=False),
156
  ]),
157
  ]
158
  url_conditional_fields = [