A minimal toy application for demo and testing purposes. It can serve as a reference implementation of current best practices in the project (mirroring the DEEP template).
This demo module implements:
To launch it, first install the package then run deepaas:
git clone https://github.com/deephdc/demo_app
cd demo_app
pip install -e .
deepaas-run --listen-ip 0.0.0.0
The associated Docker container for this module can be found in deephdc/DEEP-OC-demo_app.
Samples for media files are provided in ./data
.
The two branches in this repo cover the two main usecases:
predict()
.predict()
. This is particularly useful when returning:
txt
file), The train()
function is common for both branches.