Simple image classification service compatible with the SingularityNET daemon
Clone the git repository
$ git clone git@github.com:singnet/example-service.git
$ cd example-service
Install the dependencies
$ pip install -r requirements.txt
{
"SERVER_PORT": 5001,
"MINIMUM_SCORE": 0.20,
"LOG_LEVEL": 10
}
$ python image_classification_service
Create snetd.config.json
file containing the following:
{
"passthrough_enabled": true
}
in order to enable example service work with daemon. See SingularityNet daemon configuration for detailed configuration description.
$ ./scripts/run-snet-service
$ docker run --detach -p HOST_PORT:DAEMON_LISTENING_PORT -v /path/to/config:/snetd.config singularitynet/example-service:latest
$ ./scripts/test-call
$ ./scripts/build-docker
This project is licensed under the MIT License - see the LICENSE file for details.