Spaces:
Sleeping
Sleeping
limitedonly41
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,8 @@ image_transform = transforms.Compose([
|
|
55 |
])
|
56 |
|
57 |
# EasyOCR Reader for text extraction
|
58 |
-
ocr_reader = easyocr.Reader(['en', 'de'], gpu=False) # Supports English and German
|
|
|
59 |
|
60 |
# CLIP Processor
|
61 |
clip_processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-patch32")
|
|
|
55 |
])
|
56 |
|
57 |
# EasyOCR Reader for text extraction
|
58 |
+
# ocr_reader = easyocr.Reader(['en', 'de'], gpu=False) # Supports English and German
|
59 |
+
ocr_reader = easyocr.Reader(['en', 'de'], model_storage_directory="./")
|
60 |
|
61 |
# CLIP Processor
|
62 |
clip_processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-patch32")
|