You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trying to create a simple python flask web application wich send a post
request of an uploaded file from anywere in the fle system to the api sever
and print results
so the problem i was having is when i created a folder to save the user
uploaded files the files coming from the post request are being saved as
role images and also without any memorie occupation
on theuploaded files
also the uploaded file seems to be difficult to access with this method
import requests
url = ' http://localhost:5000/model/predict'
files = {'image': open('true.png', 'rb')}
x = requests.post(url, files=files)
print(x.text)
like trying to acess an html uploded file to replace the tue.png position
in the files dictionary
also throwing a file not found
so that do request.post with the html uploaded image
like just trying to create an upload function in html and submit the png
uploaded image to the api
and return results
main.html is main.js is a javascript file
and files can be displayed in deafault flask arrangement
static and template folder
making a request to the api with this html form is giving me an error are there any headers missing or whats going wrong
thank yu in advance
The text was updated successfully, but these errors were encountered: