This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# USAGE | |
# Start the server: | |
# python app.py | |
# Submit a request via cURL: | |
# curl -X POST -F [email protected] 'http://localhost:5000/predict' | |
# import the necessary packages | |
from keras.applications import ResNet50 | |
from keras.preprocessing.image import img_to_array | |
from keras.applications import imagenet_utils |