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
Hi! Thanks for putting this together, I was frustrated with trying to manually configure pytorch/CUDA for docling and found this. It's super helpful, but for newer users it would be helpful to structure the readme into a 1,2,3 step process on setup, and maybe include a section on how to actually send the request.
Something like an example of how to hit the endpoints you set up:
import requests
import json
import os
# API endpoint
url = "http://localhost:8080/parse/file"
# PDF file path
pdf_path = os.path.join("path", "to", "your", "file.pdf")
# Send request
response = requests.post(
url,
files={'file': open(pdf_path, 'rb')},
data={'data': json.dumps({
"include_json": False,
"output_format": "markdown"
})}
)
# ++ Code that handles the response, etc.
The text was updated successfully, but these errors were encountered:
Hi! Thanks for putting this together, I was frustrated with trying to manually configure pytorch/CUDA for docling and found this. It's super helpful, but for newer users it would be helpful to structure the readme into a 1,2,3 step process on setup, and maybe include a section on how to actually send the request.
Something like an example of how to hit the endpoints you set up:
The text was updated successfully, but these errors were encountered: