Spaces:
Running
Running
Zekun Wu
commited on
Commit
·
a3a3cb0
1
Parent(s):
561c1fb
update
Browse files- pages/1_Injection.py +1 -1
pages/1_Injection.py
CHANGED
@@ -77,7 +77,7 @@ else:
|
|
77 |
st.session_state.occupation = st.selectbox("Occupation", options=categories, index=categories.index(st.session_state.occupation) if st.session_state.occupation in categories else 0)
|
78 |
|
79 |
st.session_state.sample_size = st.number_input("Sample Size", 2, len(df), st.session_state.sample_size)
|
80 |
-
st.session_state.proportion = st.number_input("Proportion", 0.0, 1.0, st.session_state.proportion, 0.01)
|
81 |
st.session_state.group_name = st.text_input("Group Name", value=st.session_state.group_name)
|
82 |
st.session_state.privilege_label = st.text_input("Privilege Label", value=st.session_state.privilege_label)
|
83 |
st.session_state.protect_label = st.text_input("Protect Label", value=st.session_state.protect_label)
|
|
|
77 |
st.session_state.occupation = st.selectbox("Occupation", options=categories, index=categories.index(st.session_state.occupation) if st.session_state.occupation in categories else 0)
|
78 |
|
79 |
st.session_state.sample_size = st.number_input("Sample Size", 2, len(df), st.session_state.sample_size)
|
80 |
+
st.session_state.proportion = st.number_input("Proportion", 0.0, 1.0, float(st.session_state.proportion), 0.01)
|
81 |
st.session_state.group_name = st.text_input("Group Name", value=st.session_state.group_name)
|
82 |
st.session_state.privilege_label = st.text_input("Privilege Label", value=st.session_state.privilege_label)
|
83 |
st.session_state.protect_label = st.text_input("Protect Label", value=st.session_state.protect_label)
|