harishsohani commited on
Commit
1f5bd50
·
verified ·
1 Parent(s): 84eb33a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -18,13 +18,12 @@ 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
- user_input = st.number_input(f"{title}\n{hint}",
22
  min_value=minval,
23
  max_value=maxval,
24
  value=defvalue,
25
  step=steps,
26
- format=valformat,
27
- label_visibility="collapsed"
28
  )
29
 
30
  #st.markdown('</div>', unsafe_allow_html=True)
 
18
 
19
  st.markdown('<div style="margin-bottom:4px;">', unsafe_allow_html=True)
20
 
21
+ user_input = st.number_input(f"{title} ({hint})",
22
  min_value=minval,
23
  max_value=maxval,
24
  value=defvalue,
25
  step=steps,
26
+ format=valformat
 
27
  )
28
 
29
  #st.markdown('</div>', unsafe_allow_html=True)