Spaces:
Runtime error
Runtime error
add comments
Browse files
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,
|