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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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="**Moderator Intervention**: Do feel this comment/discussion would benefit from moderator intervention?"),
53
  Field(name="actions_clear", type="select_slider",
54
- title="**Priority**: 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,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)