Spaces:
Sleeping
Sleeping
nishantguvvada
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -17,10 +17,10 @@ def load_lr():
|
|
17 |
model = pickle.load(open('lr.sav', 'rb'))
|
18 |
return model
|
19 |
|
20 |
-
st.title("
|
21 |
|
22 |
st.write("""
|
23 |
-
# Select
|
24 |
"""
|
25 |
)
|
26 |
|
@@ -50,13 +50,13 @@ with st.sidebar:
|
|
50 |
st.write("Input Settings:")
|
51 |
|
52 |
#define the gender for the model
|
53 |
-
gender_input = st.radio("
|
54 |
if gender_input == "Male":
|
55 |
gender = 0
|
56 |
else:
|
57 |
gender = 1
|
58 |
|
59 |
-
model_input = st.radio("
|
60 |
|
61 |
|
62 |
with st.container():
|
|
|
17 |
model = pickle.load(open('lr.sav', 'rb'))
|
18 |
return model
|
19 |
|
20 |
+
st.title("Burnt Calories Prediction")
|
21 |
|
22 |
st.write("""
|
23 |
+
# Select a machine learning model
|
24 |
"""
|
25 |
)
|
26 |
|
|
|
50 |
st.write("Input Settings:")
|
51 |
|
52 |
#define the gender for the model
|
53 |
+
gender_input = st.radio("Gender", ["Male", "Female"], index=None)
|
54 |
if gender_input == "Male":
|
55 |
gender = 0
|
56 |
else:
|
57 |
gender = 1
|
58 |
|
59 |
+
model_input = st.radio("Model", ["Random Forest Regressor", "Linear Regressor", "XG Boost"], index=None)
|
60 |
|
61 |
|
62 |
with st.container():
|