pragnakalp
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,6 @@ Paddle OCR
|
|
27 |
"""
|
28 |
# @spaces.GPU
|
29 |
def ocr_with_paddle(img):
|
30 |
-
print(zero.device)
|
31 |
finaltext = ''
|
32 |
ocr = PaddleOCR(use_gpu=True,lang='en',use_angle_cls=True)
|
33 |
# img_path = 'exp.jpeg'
|
@@ -44,7 +43,6 @@ Keras OCR
|
|
44 |
"""
|
45 |
# @spaces.GPU
|
46 |
def ocr_with_keras(img):
|
47 |
-
print(zero.device)
|
48 |
output_text = ''
|
49 |
pipeline=keras_ocr.pipeline.Pipeline().to(device)
|
50 |
images=[keras_ocr.tools.read(img)]
|
|
|
27 |
"""
|
28 |
# @spaces.GPU
|
29 |
def ocr_with_paddle(img):
|
|
|
30 |
finaltext = ''
|
31 |
ocr = PaddleOCR(use_gpu=True,lang='en',use_angle_cls=True)
|
32 |
# img_path = 'exp.jpeg'
|
|
|
43 |
"""
|
44 |
# @spaces.GPU
|
45 |
def ocr_with_keras(img):
|
|
|
46 |
output_text = ''
|
47 |
pipeline=keras_ocr.pipeline.Pipeline().to(device)
|
48 |
images=[keras_ocr.tools.read(img)]
|