Spaces:
Running
Running
Fix formatting.
Browse files
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:
|