Spaces:
Runtime error
Runtime error
phlippseitz
commited on
Commit
•
bd3584b
1
Parent(s):
28085d0
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,7 @@ torch.hub.download_url_to_file('https://i.imgur.com/aqMBT0i.jpg', 'example.jpg')
|
|
10 |
|
11 |
def inference(img, lang):
|
12 |
ocr = PaddleOCR(lang=lang,use_gpu=False)
|
13 |
-
|
14 |
-
result = ocr.ocr(img_path, cls=False)[0]
|
15 |
txts = [line[1][0] for line in result]
|
16 |
return "\n".join(txts)
|
17 |
|
|
|
10 |
|
11 |
def inference(img, lang):
|
12 |
ocr = PaddleOCR(lang=lang,use_gpu=False)
|
13 |
+
result = ocr.ocr(img, cls=False)[0]
|
|
|
14 |
txts = [line[1][0] for line in result]
|
15 |
return "\n".join(txts)
|
16 |
|