Spaces:
Sleeping
Sleeping
Sarath0x8f
commited on
Update ObjCharRec.py
Browse files- ObjCharRec.py +3 -3
ObjCharRec.py
CHANGED
@@ -18,9 +18,9 @@ def ocr_with_paddle(img):
|
|
18 |
text = result[0][i][1][0]
|
19 |
finaltext += ' ' + text
|
20 |
|
21 |
-
with open("Request.txt", 'a', encoding="utf-8") as f:
|
22 |
-
|
23 |
-
|
24 |
audio_path = translate_speak.audio_streaming(txt=finaltext, to=1)
|
25 |
|
26 |
return finaltext, audio_path
|
|
|
18 |
text = result[0][i][1][0]
|
19 |
finaltext += ' ' + text
|
20 |
|
21 |
+
# with open("Request.txt", 'a', encoding="utf-8") as f:
|
22 |
+
# f.write(f"{datetime.datetime.now()}: {finaltext}\n")
|
23 |
+
print(f"\n{datetime.datetime.now()}: {finaltext}\n")
|
24 |
audio_path = translate_speak.audio_streaming(txt=finaltext, to=1)
|
25 |
|
26 |
return finaltext, audio_path
|