Sarath0x8f commited on
Commit
fb13c00
·
verified ·
1 Parent(s): 85e9be6

Update ObjCharRec.py

Browse files
Files changed (1) hide show
  1. 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
- f.write(f"{datetime.datetime.now()}: {finaltext}\n")
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