Spaces:
Runtime error
Runtime error
Update app.py
Browse files16 unmodified lines1718192020212223242516 unmodified lines try: img = cv2.imread(image) img = cv2.resize(img, (150, 150)) img = np.expand_dims(img, axis=0) img= cv2.cvtColor(img, cv2.COLOR_BGR2RGB) img = np.expand_dims(img, axis=0) #img = img.astype(np.float32) / 255.0
keras_model = load_model(model_paths[model_name])app.py+2-1