harishsohani commited on
Commit
d561456
·
verified ·
1 Parent(s): 7f26aad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -77,7 +77,7 @@ div[data-baseweb="input"] {
77
 
78
 
79
 
80
- def formatted_number_input(title, hint, minval, maxval, defvalue, steps, valformat="%.6f"):
81
 
82
  st.markdown('<div style="margin-bottom:4px;">', unsafe_allow_html=True)
83
 
@@ -93,8 +93,8 @@ def formatted_number_input(title, hint, minval, maxval, defvalue, steps, valform
93
  min_value=minval,
94
  max_value=maxval,
95
  value=defvalue,
96
- step=step,
97
- format=format,
98
  label_visibility="collapsed"
99
  )
100
 
 
77
 
78
 
79
 
80
+ def formatted_number_input(title, hint, minval, maxval, defvalue, steps, valformat="%.4f"):
81
 
82
  st.markdown('<div style="margin-bottom:4px;">', unsafe_allow_html=True)
83
 
 
93
  min_value=minval,
94
  max_value=maxval,
95
  value=defvalue,
96
+ step=steps,
97
+ format=valformat,
98
  label_visibility="collapsed"
99
  )
100