Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,13 +10,11 @@ def ocr_model(filepath: str, languages: List[str]=None):
|
|
10 |
result = pocr_model.ocr(filepath)
|
11 |
state_txt = ""
|
12 |
# for j in range(len(result)):
|
13 |
-
i
|
14 |
-
|
15 |
-
text1
|
16 |
-
|
17 |
-
|
18 |
-
i= i+1
|
19 |
-
return state_txt
|
20 |
|
21 |
title = "US Vehicle Number Plate"
|
22 |
description = "Gradio demo for PaddlePaddle. PaddleOCR is an open source text recognition (OCR) Engine."
|
|
|
10 |
result = pocr_model.ocr(filepath)
|
11 |
state_txt = ""
|
12 |
# for j in range(len(result)):
|
13 |
+
for i in range(len(result)):
|
14 |
+
# text1= result[0][i]
|
15 |
+
# state_txt += str(text1)
|
16 |
+
print('i=',i)
|
17 |
+
return result
|
|
|
|
|
18 |
|
19 |
title = "US Vehicle Number Plate"
|
20 |
description = "Gradio demo for PaddlePaddle. PaddleOCR is an open source text recognition (OCR) Engine."
|