Update main.py

This commit is contained in:
Amrasil 2025-03-27 15:24:24 +01:00 committed by GitHub
parent 4fbfcf2d00
commit c3877f894e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -169,7 +169,9 @@ def scan_view():
@app.route("/api/v1/image_reco", methods=['POST'])
def image_recognition():
"""
returns json formatted description of an image
generate a description of an image
:return: json
"""
# note that the classifier is a singleton
if 'image' not in request.files: