This code exposes an inference REST API endpoint that runs the Latent Diffusion Model to generate 3D brain scans. Scans are exported to a S3 bucket of choice. A s3 bucket needs to be created and credentials passed through a .env file (see sample_env.txt). This file also contains the endpoint bearer token or key.
To build the image, navigate to the root folder and execute the build command
To "run" or execute the image (following a successful build above) - execute the following
You can access the endpoint documentation by visiting the server url (e.g. assuming it's localhost) http(s)://localhost:8000/docs
To programatically call or access the endpoint - see api_inference_example.py attached