I have developed a streamlit app that runs in a docker container on a server with 5 cpus. After some investigation I found out that the app only uses one cpu at the time (and actually maxes out when running heavy computations). It’s clearly not taking advantage of the 4 other cpus available and I was wondering if there was an easy (or complicated) way to force streamlit to run the computation on multiple cpus. I was hoping that some sort of automatic load balancing would happen but that’s clearly not the case.
What are my options here?