my flask server is not executing properly

i have created a flutter that accepts an image from the user. I want to send this image to my flask server where a deep learning model is connected. click to view snapshot of flask server.
The server is up and running but the predict function in the flask server is not running and it doesn’t print the print statement inside the function and I can’t seem to find where the error is. click to view my flutter function. I am a beginner and if someone experienced knows the solution, it would be really helpful

i tried adding print statements to find out where i stopped getting output and the “var response = await request.send()” is where it goes wrong. the flask server doesn’t return any response so any print statement i put after that line doesn’t get executed

Leave a Comment