1

I am trying to host flask API on google colab notebook, here is the google colab notebook link:

https://colab.research.google.com/drive/15TElc4G0Fp5hNRMhdWh7NDxnqCTTHBcN?usp=sharing

I do get ngrok URL, but opening this URL says

Tunnel 11deff2aa4d8.ngrok.io not found

Can someone confirm if there is something changed in Google colab settings? Regards,

!pip install flask-ngrok

from flask_ngrok import run_with_ngrok
from flask import Flask
app = Flask(__name__)
run_with_ngrok(app)   #starts ngrok when the app is run
@app.route("/")
def home():
    return "<h1>Running Flask on Google Colab!</h1>"
  
app.run()
Rohit
  • 6,941
  • 17
  • 58
  • 102
  • 1
    I can confirm that suddenly I'm having the same problem. Seems they have changed something on Colab – jvence Jan 31 '21 at 14:02
  • Does this answer your question? [Tunnel not found error Pyngrok streamlit collab](https://stackoverflow.com/questions/65966425/tunnel-not-found-error-pyngrok-streamlit-collab) – alexdlaird Feb 02 '21 at 16:53

0 Answers0