This is a simple template fastAPI app to start and stop https://fluidstack.io server. I first create a server and installed desired libraries. For example, I installed nougat ocr (https://github.com/facebookresearch/nougat). There is a 1-2 minutes walltime to start and stop the server, btw. One can simply test this using the following API:
curl -X 'POST' 'https://llms-xyz.tech/gpu_ocr' -H 'accept: application/json' -H 'Content-Type: multipart/form-data' -F 'file=@</path/to/pdf>;type=application/pdf' -m 200