emvecchi commited on
Commit
9f4c7d5
1 Parent(s): 52058f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -176,9 +176,10 @@ def show_field(f: Field, index: int):
176
  labels = default_labels if not f.other_params.get('labels') else f.other_params.get('labels')
177
  st.session_state.data_inputs[f.name] = st.select_slider(f.title,
178
  options=labels,
 
179
  #format_func=lambda x: labels[x // 25],
180
  key=key,
181
- value=labels[3], help=f.help)
182
  case 'text':
183
  st.session_state.data_inputs[f.name] = st.text_input(f.title, key=key, value=value)
184
  case 'textarea':
 
176
  labels = default_labels if not f.other_params.get('labels') else f.other_params.get('labels')
177
  st.session_state.data_inputs[f.name] = st.select_slider(f.title,
178
  options=labels,
179
+ #options=[0, 25, 50, 75, 100],
180
  #format_func=lambda x: labels[x // 25],
181
  key=key,
182
+ value=value, help=f.help)
183
  case 'text':
184
  st.session_state.data_inputs[f.name] = st.text_input(f.title, key=key, value=value)
185
  case 'textarea':