anikde commited on
Commit
1a662ac
·
1 Parent(s): 4aa9ef2

configured for CPU

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from IndicPhotoOCR.theme import Seafoam
6
  from IndicPhotoOCR.utils.helper import detect_para
7
 
8
  # Initialize the OCR object for text detection and recognition
9
- ocr = OCR(verbose=False)
10
 
11
  def process_image(image):
12
  """
 
6
  from IndicPhotoOCR.utils.helper import detect_para
7
 
8
  # Initialize the OCR object for text detection and recognition
9
+ ocr = OCR(device="cpu", verbose=False)
10
 
11
  def process_image(image):
12
  """