Spaces:
Running
Running
Update app.py
Browse files
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=
|
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':
|