Current code is invoking a subprocess and reading the stdout to retrieve the results. When deployed, we should be using something like gunicorn to manage processes per request. (https://www.uvicorn.org/deployment/#gunicorn)
Don't need to setup gunicorn yet but let's remove the subprocess from the code.
Current code is invoking a subprocess and reading the stdout to retrieve the results. When deployed, we should be using something like gunicorn to manage processes per request. (https://www.uvicorn.org/deployment/#gunicorn)
Don't need to setup gunicorn yet but let's remove the subprocess from the code.