ayymen commited on
Commit
c5380a5
1 Parent(s): 9326455

Fix formatting.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,8 +24,8 @@ def ocr(img, script):
24
  for obj2 in obj1.lines:
25
  for obj3 in obj2.words:
26
  res = res + " " + obj3.value
 
27
  res = res + "\n"
28
- res = res + "\n\n"
29
  _output_name = "RESULT_OCR.txt"
30
  open(_output_name, 'w', encoding="utf-8").close() # clear file
31
  with open(_output_name, "w", encoding="utf-8", errors="ignore") as f:
 
24
  for obj2 in obj1.lines:
25
  for obj3 in obj2.words:
26
  res = res + " " + obj3.value
27
+ res = res + "\n"
28
  res = res + "\n"
 
29
  _output_name = "RESULT_OCR.txt"
30
  open(_output_name, 'w', encoding="utf-8").close() # clear file
31
  with open(_output_name, "w", encoding="utf-8", errors="ignore") as f: