Isabel Gwara commited on
Commit
ec8e2f2
·
1 Parent(s): 9566b05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -16,7 +16,6 @@ from os.path import exists
16
  ### ----------------------------- ###
17
  ### interface setup ###
18
  ### ----------------------------- ###
19
- acc = 1
20
 
21
 
22
  with open('styles.css') as f:
@@ -99,7 +98,7 @@ def train_model():
99
  with open('model.pkl', 'wb') as f:
100
  pkl.dump(model, f)
101
 
102
- acc = metrics.accuracy_score(y_test, y_pred)
103
 
104
  return model
105
 
 
16
  ### ----------------------------- ###
17
  ### interface setup ###
18
  ### ----------------------------- ###
 
19
 
20
 
21
  with open('styles.css') as f:
 
98
  with open('model.pkl', 'wb') as f:
99
  pkl.dump(model, f)
100
 
101
+ global acc = metrics.accuracy_score(y_test, y_pred)
102
 
103
  return model
104