Arafath10 commited on
Commit
db89d28
·
verified ·
1 Parent(s): cc71adf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = 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"
 
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"