How can I call a Python function with my Node.js (express) backend server?
I want to call this function and give it an image url
def predictImage(img_path):
# load model
model = load_model("model.h5")
# load a single image
new_image = load_image(img_path)
# check prediction
pred = model.predict(new_image)
return str(pred)