Vihang28 commited on
Commit
05b6fee
·
1 Parent(s): cecd408

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
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=0
14
- while i < (len(result)):
15
- text1= result[0][i]
16
- state_txt += str(text1)
17
- print(i)
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."