Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ def predict_survival(Pclass, Sex, Age, SibSp, Parch, Fare, HasCabin, Embarked):
|
|
| 19 |
input_data = np.array([[Pclass, Sex, Age, SibSp, Parch, Fare, HasCabin, Embarked]])
|
| 20 |
|
| 21 |
# Use the model to make a prediction
|
| 22 |
-
prediction =
|
| 23 |
|
| 24 |
# Convert the prediction to a human-readable result
|
| 25 |
result = "Survived" if prediction[0] == 1 else "Did Not Survive"
|
|
|
|
| 19 |
input_data = np.array([[Pclass, Sex, Age, SibSp, Parch, Fare, HasCabin, Embarked]])
|
| 20 |
|
| 21 |
# Use the model to make a prediction
|
| 22 |
+
prediction = loaded_logistic_regression_model.predict(input_data)
|
| 23 |
|
| 24 |
# Convert the prediction to a human-readable result
|
| 25 |
result = "Survived" if prediction[0] == 1 else "Did Not Survive"
|