Streamlit on Colab with Ngrok to expose URL and adding Nginx as proxy

With this not so eye catching title, I wish at least this help someone.

The intention is the leverage the best out of Colab as a lot of time my prototypes lately on machine learning require some sort of larger RAM availability or package install (which I am pretty lack of when I already have loads of conda environments)

The gist, I wish is self-explanatory, but feel free to comment and let me know something that I have mistaken or using dump ways, this is NOT intended to be production level but if any suggestion to make this production ready, it’s great.

Result

Streamlit App
Ngrok Inspection Portal

Code

--

--