$ python -m app.model -h
usage: model.py [-h] [--train] [--predict IMAGE_PATH] [--epochs EPOCHS] [--train-path TRAIN_PATH]
Train a model on specified images or predict using an existing model.
options:
-h, --help show this help message and exit
--train Download images and train the model.
--predict IMAGE_PATH Predict an image. Requires path to image.
--epochs EPOCHS Number of epochs to train the model.
--train-path TRAIN_PATH
Path to store training images.
Using knative with camel-k
# Create knative service
$ kn service create parsley --image quay.io/bzlotnik/parsley:latest --port 8080 --namespace my-namespace --env-from secret:aws-creds --env AWS_DEFAULT_REGION=<region> RESULT_BUCKET=<bucket>