Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -47,11 +47,11 @@ fields: List[Field] = [
|
|
47 |
Field(name="comment", type="input_col", title="**Comment:**"),
|
48 |
Field(name="image_name", type="input_col", title="**Visualization of high contributing properties:**"),
|
49 |
|
50 |
-
Field(type="container", title="", children=[
|
51 |
Field(name="to_moderate", type="radio",
|
52 |
-
title="
|
53 |
Field(name="actions_clear", type="select_slider",
|
54 |
-
title="
|
55 |
]),
|
56 |
|
57 |
Field(type="container", title="**Moderation Function**", children=[
|
@@ -168,7 +168,7 @@ def show_field(f: Field, index: int):
|
|
168 |
choices = default_choices if not f.other_params.get('choices') else f.other_params.get('choices')
|
169 |
st.session_state.data_inputs[f.name] = st.multiselect(f.title,
|
170 |
options = choices,
|
171 |
-
key=key, max_selections=3
|
172 |
help=f.help)
|
173 |
case 'text':
|
174 |
st.session_state.data_inputs[f.name] = st.text_input(f.title, key=key, value=value)
|
|
|
47 |
Field(name="comment", type="input_col", title="**Comment:**"),
|
48 |
Field(name="image_name", type="input_col", title="**Visualization of high contributing properties:**"),
|
49 |
|
50 |
+
Field(type="container", title="**Need for Moderation**", children=[
|
51 |
Field(name="to_moderate", type="radio",
|
52 |
+
title="Do feel this comment/discussion would benefit from moderator intervention?"),
|
53 |
Field(name="actions_clear", type="select_slider",
|
54 |
+
title="With what level of **priority** would you need to interact with this comment?", other_params={'labels': priority_labels}),
|
55 |
]),
|
56 |
|
57 |
Field(type="container", title="**Moderation Function**", children=[
|
|
|
168 |
choices = default_choices if not f.other_params.get('choices') else f.other_params.get('choices')
|
169 |
st.session_state.data_inputs[f.name] = st.multiselect(f.title,
|
170 |
options = choices,
|
171 |
+
key=key, max_selections=3,
|
172 |
help=f.help)
|
173 |
case 'text':
|
174 |
st.session_state.data_inputs[f.name] = st.text_input(f.title, key=key, value=value)
|