Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ app = FastAPI()
|
|
| 12 |
# Load the doctr OCR model
|
| 13 |
os.environ['USE_TORCH'] = 'YES'
|
| 14 |
os.environ['USE_TF'] = 'NO'
|
| 15 |
-
ocr_model = ocr_predictor(
|
| 16 |
|
| 17 |
def ocr_with_doctr(file):
|
| 18 |
text_output = ''
|
|
|
|
| 12 |
# Load the doctr OCR model
|
| 13 |
os.environ['USE_TORCH'] = 'YES'
|
| 14 |
os.environ['USE_TF'] = 'NO'
|
| 15 |
+
ocr_model = ocr_predictor(pretrained=True)
|
| 16 |
|
| 17 |
def ocr_with_doctr(file):
|
| 18 |
text_output = ''
|