-
Notifications
You must be signed in to change notification settings - Fork 3
Get started [V0]
Simon Mo edited this page Jan 13, 2020
·
1 revision
Assume current working directory is at ~/go/src/github.com/harbor-ml/modelzoo:
cd go
go build
./go seed --data ../models.json
./go serveYou should see
2019/10/14 19:39:39 Server started, listening to port 9000
cd python/model_io
gunicorn --bind 0.0.0.0:10000 clipper:appYou should see
[2019-10-14 14:33:37 -0700] [21406] [INFO] Starting gunicorn 19.7.1
[2019-10-14 14:33:37 -0700] [21406] [INFO] Listening at: http://0.0.0.0:10000 (21406)
[2019-10-14 14:33:37 -0700] [21406] [INFO] Using worker: sync
[2019-10-14 14:33:37 -0700] [21449] [INFO] Booting worker with pid: 21449
- Download it from grpc-web
- Unzip and run the binary:
./grpcwebproxy-v0.11.0-osx-x86_64 --backend_addr=localhost:9000 --run_tls_server=false --allow_all_originscd js
npm install
npm startYou should see
Compiled successfully!
You can now view js in the browser.
http://localhost:3000/
Note that the development build is not optimized.
To create a production build, use npm run build.
./go proxy
Starts at port 9090