Isabel Gwara commited on
Commit
5f22042
·
1 Parent(s): a7c03e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -95,7 +95,7 @@ def train_model():
95
  y_pred = model.predict(x_test)
96
 
97
  # save the model to file
98
- with open('model.pkl', 'w+') as f:
99
  pkl.dump(model, f)
100
 
101
  ### -------------------------------- ###
 
95
  y_pred = model.predict(x_test)
96
 
97
  # save the model to file
98
+ with open('model.pkl', 'wb') as f:
99
  pkl.dump(model, f)
100
 
101
  ### -------------------------------- ###