ranimeree commited on
Commit
18d4389
·
verified ·
1 Parent(s): 6cfcc8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def predict(gender, age, hypertension, ever_married, work_type, heart_disease, a
36
  input_df = pd.DataFrame([inputs], columns=input_labels)
37
 
38
  # Predict the stroke risk
39
- prediction = model.predict(input_df)[0]
40
 
41
  # Return the prediction
42
  result = "High Risk" if prediction == 1 else "Low Risk"
 
36
  input_df = pd.DataFrame([inputs], columns=input_labels)
37
 
38
  # Predict the stroke risk
39
+ prediction = model.predict(model_input=input_df)[0]
40
 
41
  # Return the prediction
42
  result = "High Risk" if prediction == 1 else "Low Risk"