Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,5 +3,9 @@ import streamlit as st
|
|
3 |
st.title("titanic prediction apps")
|
4 |
|
5 |
pclass=st.radio("pclass",[1,2,3])
|
6 |
-
|
7 |
-
st.
|
|
|
|
|
|
|
|
|
|
3 |
st.title("titanic prediction apps")
|
4 |
|
5 |
pclass=st.radio("pclass",[1,2,3])
|
6 |
+
sex=st.pills("gender",["male","female"])
|
7 |
+
age=st.slider("age", min_value=1, max_value=120)
|
8 |
+
sibsp=st.selectbox("sibsp",[0, 1, 2, 4, 3, 5, 8])
|
9 |
+
parch=st.selectbox("parch",[0, 1, 2, 5, 4, 3, 6])
|
10 |
+
fare=st.slider("fare", min_value=0, max_value=1000)
|
11 |
+
embarked=st.selectbox("embarked",["S","C","Q"])
|