Categories
Misc

Can anyone helpme with this code? requests.post is not working. When Im checking in postman the page is still loading as sending request?

@/app.route(‘/myapp/detectObjects’,methods = [‘POST’])

def detect():

imge = request.files.getlist(“image”)

img = imge[0].filename

req = requests.post(‘http://127.0.0.1:5000/give‘,json={“image”:img})

return req.json()

submitted by /u/Savings-Stop-3300
[visit reddit] [comments]

Leave a Reply

Your email address will not be published.