odrec commited on
Commit
cd19df6
·
verified ·
1 Parent(s): e2503eb

Add missing ocr model

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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(