1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-11-28 04:04:58 +03:00

chore: add Python bridge npm script

This commit is contained in:
louistiti 2022-11-06 21:57:04 +08:00
parent 8a91dcb85d
commit ddf389ffd1
2 changed files with 2 additions and 2 deletions

View File

@ -53,6 +53,7 @@
"build:tcp-server": "ts-node scripts/build-binaries.js tcp-server",
"start:tcp-server": "cross-env PIPENV_PIPFILE=tcp_server/src/Pipfile pipenv run python tcp_server/src/main.py",
"start": "cross-env LEON_NODE_ENV=production node ./server/dist/index.js",
"python-bridge": "cross-env PIPENV_PIPFILE=bridges/python/src/Pipfile pipenv run python bridges/python/src/main.py server/src/intent-object.sample.json",
"train": "ts-node scripts/train/run-train.js",
"prepare-release": "ts-node scripts/release/prepare-release.js",
"pre-release:python-bridge": "ts-node scripts/release/pre-release-binaries.js python-bridge",

View File

@ -199,8 +199,7 @@ class Brain {
*
* 1. Need to be at the root of the project
* 2. Edit: server/src/intent-object.sample.json
* 3. Run: PIPENV_PIPFILE=bridges/python/src/Pipfile pipenv run
* python bridges/python/src/main.py server/src/intent-object.sample.json
* 3. Run: npm run python-bridge
*/
const slots = {}
if (obj.slots) {