Spaces:
Runtime error
Runtime error
Commit
·
1550361
1
Parent(s):
b75a0d1
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
def number_field(label, columns=None, **input_params):
|
4 |
-
c1, c2 = st.
|
5 |
|
6 |
# Display field name with some alignment
|
7 |
c1.markdown("##")
|
@@ -14,7 +14,7 @@ def number_field(label, columns=None, **input_params):
|
|
14 |
return c2.number_input("", **input_params)
|
15 |
|
16 |
def key_value(key, value, columns=None):
|
17 |
-
c1, c2 = st.
|
18 |
|
19 |
# Display field name with some alignment
|
20 |
c1.markdown("##")
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
def number_field(label, columns=None, **input_params):
|
4 |
+
c1, c2 = st.columns(columns or [1, 4])
|
5 |
|
6 |
# Display field name with some alignment
|
7 |
c1.markdown("##")
|
|
|
14 |
return c2.number_input("", **input_params)
|
15 |
|
16 |
def key_value(key, value, columns=None):
|
17 |
+
c1, c2 = st.columns(columns or [2, 3])
|
18 |
|
19 |
# Display field name with some alignment
|
20 |
c1.markdown("##")
|