Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,8 +18,9 @@ def formatted_number_input2(title, hint, minval, maxval, defvalue, steps, valfor
|
|
| 18 |
|
| 19 |
st.markdown('<div style="margin-bottom:4px;">', unsafe_allow_html=True)
|
| 20 |
|
| 21 |
-
col1, col2 = st.columns([2.5, 1], vertical_alignment="center")
|
| 22 |
-
|
|
|
|
| 23 |
with col1:
|
| 24 |
st.markdown(
|
| 25 |
f"""
|
|
@@ -32,7 +33,7 @@ def formatted_number_input2(title, hint, minval, maxval, defvalue, steps, valfor
|
|
| 32 |
)
|
| 33 |
|
| 34 |
with col2:
|
| 35 |
-
|
| 36 |
min_value=minval,
|
| 37 |
max_value=maxval,
|
| 38 |
value=defvalue,
|
|
@@ -40,10 +41,19 @@ def formatted_number_input2(title, hint, minval, maxval, defvalue, steps, valfor
|
|
| 40 |
format=valformat,
|
| 41 |
label_visibility="collapsed"
|
| 42 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
-
st.markdown('</div>', unsafe_allow_html=True)
|
| 45 |
|
| 46 |
-
return
|
| 47 |
|
| 48 |
# ---------------------------------------------------------
|
| 49 |
# PAGE CONFIG
|
|
@@ -147,6 +157,8 @@ with col_right:
|
|
| 147 |
valformat="%.6f"
|
| 148 |
)
|
| 149 |
|
|
|
|
|
|
|
| 150 |
st.markdown("---")
|
| 151 |
|
| 152 |
col_btn1, col_btn2, col_btn3 = st.columns([1,2,1])
|
|
|
|
| 18 |
|
| 19 |
st.markdown('<div style="margin-bottom:4px;">', unsafe_allow_html=True)
|
| 20 |
|
| 21 |
+
#col1, col2 = st.columns([2.5, 1], vertical_alignment="center")
|
| 22 |
+
|
| 23 |
+
'''
|
| 24 |
with col1:
|
| 25 |
st.markdown(
|
| 26 |
f"""
|
|
|
|
| 33 |
)
|
| 34 |
|
| 35 |
with col2:
|
| 36 |
+
user_input = st.number_input("",
|
| 37 |
min_value=minval,
|
| 38 |
max_value=maxval,
|
| 39 |
value=defvalue,
|
|
|
|
| 41 |
format=valformat,
|
| 42 |
label_visibility="collapsed"
|
| 43 |
)
|
| 44 |
+
'''
|
| 45 |
+
user_input = st.number_input(f"{title}\n{hint}",
|
| 46 |
+
min_value=minval,
|
| 47 |
+
max_value=maxval,
|
| 48 |
+
value=defvalue,
|
| 49 |
+
step=steps,
|
| 50 |
+
format=valformat,
|
| 51 |
+
label_visibility="collapsed"
|
| 52 |
+
)
|
| 53 |
|
| 54 |
+
#st.markdown('</div>', unsafe_allow_html=True)
|
| 55 |
|
| 56 |
+
return user_input
|
| 57 |
|
| 58 |
# ---------------------------------------------------------
|
| 59 |
# PAGE CONFIG
|
|
|
|
| 157 |
valformat="%.6f"
|
| 158 |
)
|
| 159 |
|
| 160 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
| 161 |
+
|
| 162 |
st.markdown("---")
|
| 163 |
|
| 164 |
col_btn1, col_btn2, col_btn3 = st.columns([1,2,1])
|