Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ from io import BytesIO
|
|
| 8 |
|
| 9 |
app = FastAPI(title="OCR API", description="OCR through URL or Buffer")
|
| 10 |
|
| 11 |
-
reader = easyocr.Reader(['en'
|
| 12 |
|
| 13 |
def run_ocr(image_bytes):
|
| 14 |
img = Image.open(BytesIO(image_bytes)).convert("RGB")
|
|
|
|
| 8 |
|
| 9 |
app = FastAPI(title="OCR API", description="OCR through URL or Buffer")
|
| 10 |
|
| 11 |
+
reader = easyocr.Reader(['en'], gpu=False)
|
| 12 |
|
| 13 |
def run_ocr(image_bytes):
|
| 14 |
img = Image.open(BytesIO(image_bytes)).convert("RGB")
|