Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -79,22 +79,18 @@ def formatted_number_input(title, hint, minval, maxval, defvalue, steps, valform
|
|
| 79 |
|
| 80 |
st.markdown('<div style="margin-bottom:4px;">', unsafe_allow_html=True)
|
| 81 |
|
| 82 |
-
|
|
|
|
| 83 |
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
value=defvalue,
|
| 94 |
-
step=steps,
|
| 95 |
-
format=valformat,
|
| 96 |
-
label_visibility="collapsed"
|
| 97 |
-
)
|
| 98 |
|
| 99 |
return user_input
|
| 100 |
|
|
|
|
| 79 |
|
| 80 |
st.markdown('<div style="margin-bottom:4px;">', unsafe_allow_html=True)
|
| 81 |
|
| 82 |
+
st.markdown(f"**{title}**")
|
| 83 |
+
st.caption(hint)
|
| 84 |
|
| 85 |
+
user_input = st.number_input(
|
| 86 |
+
label="",
|
| 87 |
+
min_value=minval,
|
| 88 |
+
max_value=maxval,
|
| 89 |
+
value=defvalue,
|
| 90 |
+
step=steps,
|
| 91 |
+
format=valformat,
|
| 92 |
+
label_visibility="collapsed"
|
| 93 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
|
| 95 |
return user_input
|
| 96 |
|