Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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"
|