emvecchi commited on
Commit
0521783
1 Parent(s): 50acbda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +33 -4
app.py CHANGED
@@ -37,7 +37,31 @@ quality_labels = ['very poor', 'poor', 'acceptable', 'good', 'very good']
37
  priority_labels = ['not a priority', 'low priority', 'neutral', 'moderate priority', 'high priority']
38
  default_labels = agreement_labels
39
 
40
- function_choices = ['Broadening Discussion', 'Improving Comment Quality', 'Content Correction', 'Keeping Discussion on Topic', 'Organizing Discussion', 'Policing', 'Resolving Site Use Issues', 'Social Functions', 'Other (please specify)']
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  default_choices = function_choices
42
 
43
 
@@ -56,18 +80,23 @@ fields: List[Field] = [
56
 
57
  Field(type="container", title="**Moderation Function**", children=[
58
  Field(name="mod_function", type="multiselect",
59
- title="**What type of moderation function is needed here?** (Multiple selection possible)"),
60
  Field(name="mod_function_other", type="text", title="*If Other, please specify:*"),
61
  ]),
62
 
 
 
 
 
 
63
 
64
- Field(name="other_comments", type="text", title="Further comments: (free text)"),
65
  ]
66
  INPUT_FIELD_DEFAULT_VALUES = {'slider': 0,
67
  'text': None,
68
  'textarea': None,
69
  'checkbox': False,
70
- 'radio': False,
71
  'select_slider': 50,
72
  'multiselect': None}
73
  SHOW_HELP_ICON = False
 
37
  priority_labels = ['not a priority', 'low priority', 'neutral', 'moderate priority', 'high priority']
38
  default_labels = agreement_labels
39
 
40
+ function_choices = ['Broadening Discussion',
41
+ 'Improving Comment Quality',
42
+ 'Content Correction',
43
+ 'Keeping Discussion on Topic',
44
+ 'Organizing Discussion',
45
+ 'Policing',
46
+ 'Resolving Site Use Issues',
47
+ 'Social Functions',
48
+ 'Other (please specify)']
49
+ property_choices = ['appropriateness',
50
+ 'clarity',
51
+ 'constructiveness',
52
+ 'common good',
53
+ 'effectiveness',
54
+ 'emotion',
55
+ 'impact',
56
+ 'overall quality',
57
+ 'proposal',
58
+ 'Q for justification',
59
+ 'storytelling',
60
+ 'rationality',
61
+ 'reasonableness',
62
+ 'reciprocity',
63
+ 'reference',
64
+ 'Other (please specify)']
65
  default_choices = function_choices
66
 
67
 
 
80
 
81
  Field(type="container", title="**Moderation Function**", children=[
82
  Field(name="mod_function", type="multiselect",
83
+ title="What type of moderation function is needed here? *(Multiple selection possible)*"),
84
  Field(name="mod_function_other", type="text", title="*If Other, please specify:*"),
85
  ]),
86
 
87
+ Field(type="container", title="**Contributing properties**", children=[
88
+ Field(name="relevant_properties", type="multiselect",
89
+ title="Which property(s) is most impactful in your assessment? *(Multiple selection possible)*", other_params={'choices': property_choices}),
90
+ Field(name="relevant_properties_other", type="text", title="*If Other, please specify:*"),
91
+ ]),
92
 
93
+ Field(name="other_comments", type="text", title="Additional comments: *(optional)*"),
94
  ]
95
  INPUT_FIELD_DEFAULT_VALUES = {'slider': 0,
96
  'text': None,
97
  'textarea': None,
98
  'checkbox': False,
99
+ 'radio': None,
100
  'select_slider': 50,
101
  'multiselect': None}
102
  SHOW_HELP_ICON = False