File size: 316 Bytes
3a4c6fc
 
 
e7a4946
3a4c6fc
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import requests

file_path = "C:/Users/Job Ian/Desktop/iSURE/rare-diseases/data/legislatures/AZ_h_1913_apr_special_p9.png"
url = "https://jobian-smoldocling-api.hf.space/parse"

with open(file_path, "rb") as f:
    response = requests.post(url, files={"file": f})

print(response.status_code)
print(response.json())