1

需要帮助 colab 中的 flask-ngrok 不再工作?

!pip install flask-ngrok -q

from flask_ngrok import run_with_ngrok
from flask import Flask

app = Flask(__name__)
run_with_ngrok(app)

@app.route("/")
def home():
    return "hello api"
  
app.run()

输出

Tunnel xxxxxxxxxxxx.ngrok.io not found

谢谢你

4

0 回答 0