May 2020
Intermediate to advanced
404 pages
10h 52m
English
Now, we set the app variable to a Flask object and set the "/" route to be handled by the index function, which actually produces no meaningful output. This is because we will be using the /predict route to serve our prediction API as shown:
app = Flask(__name__)@app.route('/')def index(): return "Oops, nothing here!"
We will cover the convert image function in the next section.
Read now
Unlock full access