diff --git a/node_modules/career-model/Dockerfile b/career-model/Dockerfile similarity index 100% rename from node_modules/career-model/Dockerfile rename to career-model/Dockerfile diff --git a/node_modules/career-model/model.pkl b/career-model/model.pkl similarity index 100% rename from node_modules/career-model/model.pkl rename to career-model/model.pkl diff --git a/node_modules/career-model/predict.py b/career-model/predict.py similarity index 97% rename from node_modules/career-model/predict.py rename to career-model/predict.py index 7635215e..2b96e859 100644 --- a/node_modules/career-model/predict.py +++ b/career-model/predict.py @@ -48,7 +48,7 @@ def predict(student): print(student) student = parse_obj_as(Student, student) - clf = joblib.load('node_modules/career-model/model.pkl') + clf = joblib.load('career-model/model.pkl') student = student.dict(by_alias=True) query = pd.DataFrame(student, index=[0]) diff --git a/node_modules/career-model/requirements.txt b/career-model/requirements.txt similarity index 100% rename from node_modules/career-model/requirements.txt rename to career-model/requirements.txt diff --git a/install/package.json b/install/package.json index c035acbc..6ab6729f 100644 --- a/install/package.json +++ b/install/package.json @@ -15,7 +15,7 @@ "test": "npx tsc && nyc --reporter=html --reporter=text-summary mocha", "coverage": "nyc report --reporter=text-lcov > ./coverage/lcov.info", "coveralls": "nyc report --reporter=text-lcov | coveralls && rm -r coverage", - "build": "babel src/ -d dist/", + "build": "babel src/ -d dist/ && pip install -r career-model/requirements.txt", "flow": "flow" }, "nyc": { diff --git a/package.json b/package.json index 65cb78f9..33a810f7 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "test": "npx tsc && nyc --reporter=html --reporter=text-summary mocha", "coverage": "nyc report --reporter=text-lcov > ./coverage/lcov.info", "coveralls": "nyc report --reporter=text-lcov | coveralls && rm -r coverage", - "build": "babel src/ -d dist/", + "build": "babel src/ -d dist/ && pip install -r career-model/requirements.txt", "flow": "flow", "flow init": "flow init" }, @@ -84,7 +84,7 @@ "json2csv": "5.0.7", "jsonwebtoken": "8.5.1", "less": "4.1.3", - "lodash": "4.17.21", + "lodash": "^4.17.21", "logrotate-stream": "0.2.8", "lru-cache": "7.14.1", "material-design-lite": "1.3.0",