nishantguvvada commited on
Commit
2677dc1
·
verified ·
1 Parent(s): 7c08644

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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(":red[AI Journey] Burnt Calories Prediction")
21
 
22
  st.write("""
23
- # Select the machine learning model
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("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():
 
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():