emvecchi commited on
Commit
8a9ee9c
·
verified ·
1 Parent(s): 38b8c1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -77
app.py CHANGED
@@ -63,82 +63,6 @@ function_choices = ['Broadening Discussion',
63
 
64
  default_choices = function_choices
65
 
66
- guidelines_text = 'Please read <a href="https://tinyurl.com/tjy8swn2">the guidelines</a>'
67
- study_code = os.environ.get("STUDY_CODE")
68
- failed_sanity_check_code = os.environ.get("FAILED_CODE")
69
- redirect_url = f'https://app.prolific.com/submissions/complete?cfc={study_code}'
70
- failed_redirect_url = f'https://app.prolific.com/submissions/complete?cfc={failed_sanity_check_code}'
71
-
72
- annotation_guidelines_fields: List[Field] = [
73
- Field(name="annotation_guidelines", type="radio", title="Did you read the guidelines?", mandatory=True,
74
- other_params={'labels': ['Yes, in detail, and I understand the study',
75
- 'Yes, in detail, but still confused',
76
- 'Yes, I skimmed it',
77
- 'I will read it later',
78
- 'No, not interested in reading them',
79
- 'I can not open the link',
80
- ],
81
- 'accepted_values': [0]}),
82
- ]
83
-
84
- intro_fields: List[Field] = [
85
- Field(type="container", title="**Participant Profession**", children=[
86
- Field(name="intro_profession", type="radio", title="**What is your (most recent) job or profession?**",
87
- other_params={'labels': ['Software Developer / Engineer',
88
- 'Data Scientist / Analyst',
89
- 'Teacher / Educator',
90
- 'Student',
91
- 'Research Scientist / Academic Researcher',
92
- 'Marketing Sector',
93
- 'Journalist / Writer',
94
- 'Financial Analyst',
95
- 'Business Manager / Consultant',
96
- 'Healthcare Professional (e.g., Nurse, Doctor)',
97
- 'Customer Service Representative',
98
- 'Graphic Designer',
99
- 'Sales Representative',
100
- 'Entrepreneur / Business Owner',
101
- 'Other'],
102
- }, mandatory=True, following_mandatory_values=['Other']),
103
- Field(name="intro_profession_other", type="text", title="*If Other, please specify:*", mandatory=False),
104
- ]),
105
- Field(type="container", title="**Experience with Moderation**", children=[
106
- Field(name="intro_mod_experience", type="y_n_radio",
107
- title="**Have you ever worked as a moderator in an online community?**", mandatory=True, following_mandatory_values=[1]),
108
- Field(name="intro_mod_experience_info", type="text",
109
- title="*If yes, where did you moderate, and for how long?*", mandatory=False),
110
- Field(name="intro_interaction_experience", type="likert_radio",
111
- title="**How would you quantify your experience with online moderation or interacting with moderators?** ", other_params={'labels': ['No Experience', 'Little', 'Average', 'Decent', 'Extensive Experience']},
112
- mandatory=True),
113
- Field(name="intro_interaction_frequency", type="likert_radio",
114
- title="**How often do you encounter or engage with moderators in the online spaces you frequent?**", other_params={'labels': ['Never', 'Rarely', 'Sometimes', 'Often', 'Always']},
115
- mandatory=True),
116
- Field(name="intro_mod_confidence", type="likert_radio",
117
- title="**Before starting this study, based on your background and the tutorial, how confident do you feel about your ability to take on the role of a moderator in an online discussion forum?**", other_params={'labels': ['Not Confident', 'Slightly Confident', 'Moderately Confident', 'Very Confident', 'Extremely Confident']},
118
- mandatory=True),
119
- Field(name="intro_active_passive", type="y_n_radio",
120
- title="**Would you describe your role in online discussions as more *active* (writing, replying to comments) or more *passive* (reading, liking)?**", mandatory=True, other_params={'labels': ['active', 'passive']}),
121
- ]),
122
- Field(type="container", title="**If you were a moderator...**", children=[
123
- Field(name="intro_moderation_goals", type="textarea", title="**As a moderator, what would be your goals/objectives for a comment section?**"),
124
- Field(name="intro_experience", type="textarea", title="**What would you feel contributes to a good experience for the users/discussion?**"),
125
- Field(name="intro_valuable_comment", type="textarea", title="**What makes a comment or contribution valuable?**"),
126
- Field(name="intro_bad_comment", type="textarea", title="**What makes a comment or contribution of poor quality, unconstructive or detrimental to the discussion?**"),
127
- Field(name="intro_mod_ai_hum", type='textarea', title="**What do you think is the most challenging aspect of moderation that only humans can do well or better than AI?**", mandatory=True),
128
- ]),
129
- ]
130
-
131
- concluding_fields: List[Field] = [
132
- Field(type="container", title="**Concluding Questions**", children=[
133
- Field(name="conc_general_ease", type="likert_radio", title="**Determining when an instance would indeed benefit from moderator intervention was straightforward (easy to annotate).**"),
134
- Field(name="conc_guess_mod_prediction", type="likert_radio", title="**I had a pretty clear idea of which instances were predicted to need moderation by your tool, and which weren't.**"),
135
- Field(name="conc_overall_usefullness", type="likert_radio", title="**If I were a moderator, having a tool that accurately predicts and flags comments needing moderation would significantly aid in my tasks.**"),
136
- Field(name="conc_decision_making", type="textaread", title="**If I were a moderator, would a tool with accurate predictions assist you in making *more informed* moderation decisions? How so?**"),
137
- Field(name="conc_bottleneck", type="textarea", title="**What do you feel is the largest bottleneck (or obstacle) moderators face in online discussion moderation?**"),
138
- Field(name="conc_needs", type="textarea", title="**Beyond the goals of this research and annotation task, what assistance do you feel computational tools (like AI) could provide to your task?**"),
139
- ]),
140
- ]
141
-
142
  fields: List[Field] = [
143
  Field(name="patient", type="input_col", title="**Patient::**"),
144
  Field(type="expander", title="**Preceeding Comment:** *(expand)*", children=[
@@ -439,7 +363,7 @@ st.markdown(
439
  div[data-testid="stMarkdownContainer"] > p {
440
  font-size: 1rem;
441
  }
442
- section.main > div {max-width:60rem}
443
  </style>
444
  """, unsafe_allow_html=True)
445
 
 
63
 
64
  default_choices = function_choices
65
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  fields: List[Field] = [
67
  Field(name="patient", type="input_col", title="**Patient::**"),
68
  Field(type="expander", title="**Preceeding Comment:** *(expand)*", children=[
 
363
  div[data-testid="stMarkdownContainer"] > p {
364
  font-size: 1rem;
365
  }
366
+ section.main > div {max-width:80rem}
367
  </style>
368
  """, unsafe_allow_html=True)
369