Lachin commited on
Commit
ae7167c
·
1 Parent(s): 06626d1

add comments

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -14,15 +14,17 @@ def get_prediction(data={"num_countries":0,"years_school":9.5,"height":4.165}):
14
  #creating the web app
15
 
16
  #title
17
- st.title("Age Project")
18
 
19
  #dashboard
20
  st.subheader("User Dashboard")
21
 
 
22
  num_countries = st.slider("Num_countries",0,9,5)
23
  years_in_school = st.slider("Number of years in the school", 0,20,5)
24
  height = st.slider("Your Height",2.00,7.00,4.00)
25
 
 
26
  input_data = {
27
  "num_countries": num_countries,
28
  "years_school": years_in_school,
 
14
  #creating the web app
15
 
16
  #title
17
+ st.title("Age Project")#change the title according to your project
18
 
19
  #dashboard
20
  st.subheader("User Dashboard")
21
 
22
+ #change the input variables as your training data
23
  num_countries = st.slider("Num_countries",0,9,5)
24
  years_in_school = st.slider("Number of years in the school", 0,20,5)
25
  height = st.slider("Your Height",2.00,7.00,4.00)
26
 
27
+ #input_data dictionary keys must be exactly same as the column_names of the dataframe
28
  input_data = {
29
  "num_countries": num_countries,
30
  "years_school": years_in_school,