Spaces:
Sleeping
Sleeping
MrinaliniRaj96
commited on
Commit
•
9cbe2e4
1
Parent(s):
3551430
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ train_encoded_columns = [
|
|
18 |
|
19 |
# Define the function that will use the model to predict
|
20 |
def predict(age, bmi, bloodpressure,\
|
21 |
-
children, gender,
|
22 |
# Create a DataFrame for the input data
|
23 |
input_data = pd.DataFrame({
|
24 |
'age': [age],
|
@@ -72,4 +72,5 @@ iface = gr.Interface(
|
|
72 |
allow_flagging='never') # Set flagging to 'never'
|
73 |
|
74 |
# Launch the interface
|
75 |
-
iface.launch()
|
|
|
|
18 |
|
19 |
# Define the function that will use the model to predict
|
20 |
def predict(age, bmi, bloodpressure,\
|
21 |
+
children, gender, diabetic, smoker, region):
|
22 |
# Create a DataFrame for the input data
|
23 |
input_data = pd.DataFrame({
|
24 |
'age': [age],
|
|
|
72 |
allow_flagging='never') # Set flagging to 'never'
|
73 |
|
74 |
# Launch the interface
|
75 |
+
iface.launch()
|
76 |
+
|