HTTP demo for https://github.com/scrapinghub/webstruct
Add string to src/instance/config.py
MODEL_PATH='<path to model file>'
For javascript-rendering add splash credentials
SPLASH_URL = '<splash_url>'
SPLASH_USER = '<splash_user>'
SPLASH_PASS = '<splash_pass>'
And run in command line
FLASK_ENV=development FLASK_APP=src/webstruct-demo/__init__.py runinenv.sh ~/ves/webstruct-demo/ flask run --host=0.0.0.0
- Put your model file to
./model/model.joblib
- Add splash credentials to
./src/instance/config.py
if necessary - Run container build
docker build . -t webstruct-demo
- Run container
docker run -it -p 8080:8080 -v $(pwd)/src/instance/config.py:/app/instance/config.py -v $(pwd)/model:/model webstruct-demo