harishsohani commited on
Commit
5cefb87
·
verified ·
1 Parent(s): 6a052fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -15
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
- col1, col2 = st.columns([3,1.2]) # label wider, input smaller
 
83
 
84
- with col1:
85
- st.markdown(f"**{title}**")
86
- st.caption(hint)
87
-
88
- with col2:
89
- user_input = st.number_input(
90
- label="",
91
- min_value=minval,
92
- max_value=maxval,
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