Spaces:
Runtime error
Runtime error
Update app.py
Browse files17 unmodified lines18192021212223242517 unmodified lines 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 = img.astype(np.float32) / 255.0 #img = img.astype(np.float32) / 255.0
keras_model = load_model(model_paths[model_name])
app.py+2-1