I am trying to use Grobid which is built in my local machine, but this script is print a 500 error. Whereas it works fine when I do it from the CLI using Curl. Help please!
import requests
url = 'http://localhost:8080/processHeaderDocument'
files={'file': open('file.pdf', 'rb')}
r = requests.post(url,files=files)
print r.status_code
That works for me: