Spaces:
Runtime error
Runtime error
hidevscommunity
commited on
Commit
•
4c483dd
1
Parent(s):
51bc673
Update app.py
Browse files
app.py
CHANGED
@@ -33,15 +33,11 @@ def app_design():
|
|
33 |
Sex = 0
|
34 |
bmi = st.number_input("BMI")
|
35 |
children = st.number_input("Children")
|
36 |
-
smoker = st.
|
37 |
smoker = transform(['smoker'])
|
38 |
-
region = st.
|
39 |
region= transform(['region'])
|
40 |
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
|
46 |
# Create a feature list from the user inputs
|
47 |
features = [[Age, Sex, bmi, children, smoker, region]]
|
|
|
33 |
Sex = 0
|
34 |
bmi = st.number_input("BMI")
|
35 |
children = st.number_input("Children")
|
36 |
+
smoker = st.selectbox('Smoker',('Yes','No'))
|
37 |
smoker = transform(['smoker'])
|
38 |
+
region = st.selectbox('Region',('Southwest', 'Southeast', 'Northwest', 'Northeast'))
|
39 |
region= transform(['region'])
|
40 |
|
|
|
|
|
|
|
|
|
41 |
|
42 |
# Create a feature list from the user inputs
|
43 |
features = [[Age, Sex, bmi, children, smoker, region]]
|