Skip to content

Files

Latest commit

 

History

History
 
 

image_classification_app

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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"]
    ...