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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -9
app.py CHANGED
@@ -81,16 +81,23 @@ def formatted_number_input(title, hint, minval, maxval, defvalue, steps, valform
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
 
 
81
 
82
  st.markdown(f"**{title}**")
83
  st.caption(hint)
84
+
85
+ raw = st.text_input(
86
+ label="",
87
+ value=f"{defvalue:.{decimals}f}",
88
+ label_visibility="collapsed"
 
 
 
 
89
  )
90
+
91
+ user_input = float(raw)
92
+ #user_input = st.number_input(
93
+ # label="",
94
+ # min_value=minval,
95
+ # max_value=maxval,
96
+ # value=defvalue,
97
+ # step=steps,
98
+ # format=valformat,
99
+ # label_visibility="collapsed"
100
+ #)
101
 
102
  return user_input
103