IZERE HIRWA Roger commited on
Commit
69c7d52
·
1 Parent(s): b7d66ac
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -202,7 +202,7 @@ def nanonets_ocr_extract(image):
202
  """Extract text using Nanonets OCR model"""
203
  try:
204
  if ocr_model is None or ocr_processor is None or ocr_tokenizer is None:
205
- # Fallback to pytesseract
206
  return extract_text_pytesseract(image)
207
 
208
  if image.mode != 'RGB':
 
202
  """Extract text using Nanonets OCR model"""
203
  try:
204
  if ocr_model is None or ocr_processor is None or ocr_tokenizer is None:
205
+ # Fallback to py tesseract
206
  return extract_text_pytesseract(image)
207
 
208
  if image.mode != 'RGB':