Spaces:
Runtime error
Runtime error
Add missing ocr model
Browse files
app.py
CHANGED
|
@@ -32,6 +32,7 @@ def ocr_pdf_img_document(pdf_or_img_url:str)-> str:
|
|
| 32 |
pdf_or_img_url: the url address of the pdf to ocr
|
| 33 |
"""
|
| 34 |
client = Mistral(api_key=api_key)
|
|
|
|
| 35 |
|
| 36 |
try: # Apply OCR to the PDF URL
|
| 37 |
ocr_response = client.ocr.process(
|
|
|
|
| 32 |
pdf_or_img_url: the url address of the pdf to ocr
|
| 33 |
"""
|
| 34 |
client = Mistral(api_key=api_key)
|
| 35 |
+
ocr_model ="mistral-ocr-latest"
|
| 36 |
|
| 37 |
try: # Apply OCR to the PDF URL
|
| 38 |
ocr_response = client.ocr.process(
|