Summary
I am working on a Streamlit app which (from time to time) runs some expensive computations. Since the computation runs on the GPU and the memory is quite limited Iām looking for a way to limit the number of āactiveā (i.e. simultaneous) users to one.
The definition of āactiveā can be quite flexible here, depending on what is possible, i.e. it could be defined as āone user is logged inā or āone user has the application openā. Any ideas how this could be achieved easily?