harishsohani commited on
Commit
3442619
·
verified ·
1 Parent(s): 817dd8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -16,7 +16,7 @@ def formatted_number_input(title, hint, **kwargs):
16
 
17
  def formatted_number_input2(title, hint, minval, maxval, defvalue, steps, valformat="%.6f"):
18
 
19
- st.markdown('<div style="margin-bottom:8px;">', unsafe_allow_html=True)
20
 
21
  col1, col2 = st.columns([3, 1], vertical_alignment="center")
22
 
@@ -25,7 +25,7 @@ def formatted_number_input2(title, hint, minval, maxval, defvalue, steps, valfor
25
  f"""
26
  <div style="line-height:1.0">
27
  <strong>{title}</strong><br>
28
- <span style="font-size:0.85em; color:gray;">{hint}</span>
29
  </div>
30
  """,
31
  unsafe_allow_html=True
@@ -44,6 +44,16 @@ def formatted_number_input2(title, hint, minval, maxval, defvalue, steps, valfor
44
  st.markdown('</div>', unsafe_allow_html=True)
45
 
46
  return usre_input
 
 
 
 
 
 
 
 
 
 
47
  # ---------------------------------------------------------
48
  # PAGE CONFIG
49
  # ---------------------------------------------------------
 
16
 
17
  def formatted_number_input2(title, hint, minval, maxval, defvalue, steps, valformat="%.6f"):
18
 
19
+ st.markdown('<div style="margin-bottom:4px;">', unsafe_allow_html=True)
20
 
21
  col1, col2 = st.columns([3, 1], vertical_alignment="center")
22
 
 
25
  f"""
26
  <div style="line-height:1.0">
27
  <strong>{title}</strong><br>
28
+ <span style="font-size:1.00em; color:gray;">{hint}</span>
29
  </div>
30
  """,
31
  unsafe_allow_html=True
 
44
  st.markdown('</div>', unsafe_allow_html=True)
45
 
46
  return usre_input
47
+
48
+ st.markdown("""
49
+ <style>
50
+ .block-container {
51
+ padding-top: 1rem;
52
+ padding-bottom: 1rem;
53
+ }
54
+ </style>
55
+ """, unsafe_allow_html=True)
56
+
57
  # ---------------------------------------------------------
58
  # PAGE CONFIG
59
  # ---------------------------------------------------------