Example app that demonstrates how to run a Flask app with a free GPU using Google Colab and ngrok.
-
Go to ngrok.com, get a free API token, and in the Colab replace
YOUR-AUTHTOKEN-HERE
with the token. -
Set the runtime to GPU
-
Click on
Runtime -> Run all
-
In the output cell you should see a url similar to this: Running on
http://5fdc-104-196-187-169.ngrok.io
. Open this url and use your app.