Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,12 +3,12 @@ import pickle
|
|
| 3 |
import numpy as np
|
| 4 |
|
| 5 |
# store the pickle data in a file named 'payload.pkl'
|
| 6 |
-
with open('
|
| 7 |
pickle.dump(var, f)
|
| 8 |
|
| 9 |
# disassemble the pickle
|
| 10 |
# and print the instructions to the command line
|
| 11 |
-
with open('
|
| 12 |
pickletools.dis(f)
|
| 13 |
|
| 14 |
# Define prediction function
|
|
|
|
| 3 |
import numpy as np
|
| 4 |
|
| 5 |
# store the pickle data in a file named 'payload.pkl'
|
| 6 |
+
with open('log_reg_model.pkl', 'wb') as f:
|
| 7 |
pickle.dump(var, f)
|
| 8 |
|
| 9 |
# disassemble the pickle
|
| 10 |
# and print the instructions to the command line
|
| 11 |
+
with open('log_reg_model.pkl', 'rb') as f:
|
| 12 |
pickletools.dis(f)
|
| 13 |
|
| 14 |
# Define prediction function
|