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

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store