Skip to content

Files

Latest commit

 Cannot retrieve latest commit at this time.

History

History
15 lines (11 loc) · 464 Bytes

File metadata and controls

15 lines (11 loc) · 464 Bytes

Image Classification App

This example shows a simple image classification app. A form with a file input field is used to upload an image. The image is then displayed on the page and the model predicts the class of the image.

screenshot

You could also get the image from the request manually, like so:

@app.post("/classify")
async def handle_classify(request):
    data = await request.form()
    image = data["image"]
    ...