smoldocling-api / test_huggingface.py
jobian's picture
Added locations for saving model
e7a4946
raw
history blame contribute delete
316 Bytes
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())