We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5038e5 commit d11dfbaCopy full SHA for d11dfba
examples/ocr_process_from_file.py
@@ -26,12 +26,9 @@ def main():
26
purpose="ocr",
27
)
28
29
- signed_url = client.files.get_signed_url(file_id=uploaded_file.id, expiry=1)
30
-
31
pdf_response = client.ocr.process(document={
32
- "document_url": signed_url.url,
33
- "type": "document_url",
34
- "document_name": "mistral-7b-pdf",
+ "type": "file",
+ "file_id": uploaded_file.id,
35
}, model="mistral-ocr-latest", include_image_base64=True)
36
37
# Print the parsed PDF
0 commit comments