Testys commited on
Commit
50cab12
·
verified ·
1 Parent(s): 3af4294

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -13,8 +13,7 @@ def load_model():
13
  """
14
  try:
15
  # Load the pre-trained model from a pickle file
16
- with open('voting_classifier_model.joblib', 'rb') as f:
17
- model = joblib.load(f)
18
  return model
19
  except FileNotFoundError:
20
  st.error("The model file 'voting_classifier_model.pkl' was not found.")
 
13
  """
14
  try:
15
  # Load the pre-trained model from a pickle file
16
+ model = joblib.load('voting_classifier_model_1.pkl')
 
17
  return model
18
  except FileNotFoundError:
19
  st.error("The model file 'voting_classifier_model.pkl' was not found.")