Skip to content

Commit

Permalink
Merge pull request #8 from Hironsan/fix/#7
Browse files Browse the repository at this point in the history
Update model and preprocess files
  • Loading branch information
Hironsan authored Jul 29, 2020
2 parents 305a7b3 + 2e71b2e commit 1277b8d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
recursive-include asari/data *.pkl
recursive-include asari/data *.joblib
4 changes: 2 additions & 2 deletions asari/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class Sonar(object):

def __init__(self):
BASE_DIR = os.path.join(os.path.dirname(__file__), './data')
model_file = os.path.join(BASE_DIR, 'model.pkl')
preprocessor_file = os.path.join(BASE_DIR, 'preprocess.pkl')
model_file = os.path.join(BASE_DIR, 'model.joblib')
preprocessor_file = os.path.join(BASE_DIR, 'preprocess.joblib')
self.estimator = joblib.load(model_file)
self.preprocessor = joblib.load(preprocessor_file)

Expand Down
Binary file added asari/data/model.joblib
Binary file not shown.
Binary file added asari/data/preprocess.joblib
Binary file not shown.

0 comments on commit 1277b8d

Please sign in to comment.