Spaces:
Runtime error
Runtime error
Isabel Gwara
commited on
Commit
·
f0f767a
1
Parent(s):
ec8e2f2
Update app.py
Browse files
app.py
CHANGED
@@ -98,7 +98,8 @@ def train_model():
|
|
98 |
with open('model.pkl', 'wb') as f:
|
99 |
pkl.dump(model, f)
|
100 |
|
101 |
-
global acc
|
|
|
102 |
|
103 |
return model
|
104 |
|
|
|
98 |
with open('model.pkl', 'wb') as f:
|
99 |
pkl.dump(model, f)
|
100 |
|
101 |
+
global acc
|
102 |
+
acc = metrics.accuracy_score(y_test, y_pred)
|
103 |
|
104 |
return model
|
105 |
|