Trying to post an image from file to this website
[https://demo.neural-university.ru/emotion-recognition.html?ysclid=lauqlu1uq6710345308]
It asks to post an image like this:
curl -X POST -F "od_content=@1.jpg" https://srv2.demo.neural-university.ru/emotion_recognition/
I tried it with the file "user_photo_510495289.jpg" , using requests.post
import requests
url = 'https://srv2.demo.neural-university.ru/emotion_recognition/'
files = {'od_content': open('user_photo_510495289.jpg', 'rb')}
data = {'od_content': open('user_photo_510495289.jpg', 'rb').read()}
requests.post(url, data=data)
#requests.post(url, files=files)
Neither posting with "data", nor with "files" didn't work. Is it a problem with a posting request or with website API?
Tried posting what was mentioned previously, json-file is expected