Genzo1010 commited on
Commit
9412479
·
verified ·
1 Parent(s): cb54e8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,10 +13,10 @@ from datasets import load_dataset, Image
13
  from PIL import Image
14
  from paddleocr import PaddleOCR
15
  from doctr.io import DocumentFile
16
- from doctr.models import ocr_predictor
17
-
18
 
19
 
 
 
20
  ocr_model = ocr_predictor(pretrained=True)
21
 
22
 
 
13
  from PIL import Image
14
  from paddleocr import PaddleOCR
15
  from doctr.io import DocumentFile
 
 
16
 
17
 
18
+ os.environ["USE_TORCH"] = "1"
19
+ from doctr.models import ocr_predictor
20
  ocr_model = ocr_predictor(pretrained=True)
21
 
22