November 2017
Intermediate to advanced
304 pages
6h 58m
English
In this section, we will set up a Flask server to allow users to upload their images and set the correct label if our model is mistaken. We have provided the code needed in the production package. Implementing a Flask server with database support is beyond the scope of this chapter. In this section, we will describe all the main points about Flask so you can follow and understand better.
The main flow that allows users to upload and correct labels can be described in the following wireframe.
This flow is implemented with the following routes:
|
Route |
Method |
Description |
|
/ |
GET |
This route returns a web form for users to upload the image. |
|
/upload_image |
POST |
This route gets the image from POST data, ... |
Read now
Unlock full access