Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ property_choices = ['appropriateness',
|
|
74 |
assistance_choices = ['Expand the breadth of moderator role',
|
75 |
'Reduce my own bias',
|
76 |
#'Assist with recall',
|
77 |
-
'Avoids missing relevant instances',
|
78 |
'Improve speed of moderation tasks',
|
79 |
'Manage prioritization of comments to consider',
|
80 |
'Visualization of properties narrows down moderator contribution',
|
@@ -156,22 +156,22 @@ fields: List[Field] = [
|
|
156 |
Field(name="mod_function", type="multiselect",
|
157 |
title="What type of moderation function is needed here? *(Multiple selection possible)*",
|
158 |
mandatory=True),
|
159 |
-
Field(name="mod_function_other", type="text", title="*If Other, please specify:*",
|
160 |
]),
|
161 |
|
162 |
Field(type="container", title="**Contributing properties**", children=[
|
163 |
Field(name="relevant_properties", type="multiselect",
|
164 |
title="Which property(s) is most impactful in your assessment? *(Multiple selection possible)*",
|
165 |
-
other_params={'choices': property_choices}, mandatory=True),
|
166 |
-
Field(name="relevant_properties_other", type="text", title="*If Other, please specify:*"
|
167 |
]),
|
168 |
|
169 |
Field(type="container", title="**Moderator Assistance**", children=[
|
170 |
Field(name="helpful", type="y_n_radio",
|
171 |
-
title="If this comment/discussion was flagged to you, would it be helpful in your task of moderation?", mandatory=True),
|
172 |
Field(name="mod_assistance", type="multiselect",
|
173 |
title="If yes, please motivate the benefit it would contribute to the task. *(Multiple selection possible)*",
|
174 |
-
other_params={'choices': assistance_choices}
|
175 |
Field(name="mod_assistance_other", type="text", title="*If Other, please specify:*", mandatory=False),
|
176 |
]),
|
177 |
|
@@ -311,7 +311,7 @@ def show_field(f: Field, index: int, data_collected):
|
|
311 |
value=value, help=f.help)
|
312 |
case 'radio':
|
313 |
st.radio(f.title,
|
314 |
-
["
|
315 |
key=key,
|
316 |
help=f.help)
|
317 |
case 'slider':
|
|
|
74 |
assistance_choices = ['Expand the breadth of moderator role',
|
75 |
'Reduce my own bias',
|
76 |
#'Assist with recall',
|
77 |
+
'Avoids me missing relevant instances',
|
78 |
'Improve speed of moderation tasks',
|
79 |
'Manage prioritization of comments to consider',
|
80 |
'Visualization of properties narrows down moderator contribution',
|
|
|
156 |
Field(name="mod_function", type="multiselect",
|
157 |
title="What type of moderation function is needed here? *(Multiple selection possible)*",
|
158 |
mandatory=True),
|
159 |
+
Field(name="mod_function_other", type="text", title="*If Other, please specify:*", following_mandatory_values=['Other (please specify)']),
|
160 |
]),
|
161 |
|
162 |
Field(type="container", title="**Contributing properties**", children=[
|
163 |
Field(name="relevant_properties", type="multiselect",
|
164 |
title="Which property(s) is most impactful in your assessment? *(Multiple selection possible)*",
|
165 |
+
other_params={'choices': property_choices}, mandatory=True, following_mandatory_values=['Other (please specify)']),
|
166 |
+
Field(name="relevant_properties_other", type="text", title="*If Other, please specify:*"),
|
167 |
]),
|
168 |
|
169 |
Field(type="container", title="**Moderator Assistance**", children=[
|
170 |
Field(name="helpful", type="y_n_radio",
|
171 |
+
title="If this comment/discussion was flagged to you, would it be helpful in your task of moderation?", mandatory=True, following_mandatory_values=[0]),
|
172 |
Field(name="mod_assistance", type="multiselect",
|
173 |
title="If yes, please motivate the benefit it would contribute to the task. *(Multiple selection possible)*",
|
174 |
+
other_params={'choices': assistance_choices}),
|
175 |
Field(name="mod_assistance_other", type="text", title="*If Other, please specify:*", mandatory=False),
|
176 |
]),
|
177 |
|
|
|
311 |
value=value, help=f.help)
|
312 |
case 'radio':
|
313 |
st.radio(f.title,
|
314 |
+
["yes","no","other"],
|
315 |
key=key,
|
316 |
help=f.help)
|
317 |
case 'slider':
|