csukuangfj
commited on
Commit
•
de273b3
1
Parent(s):
ebd65a2
small fixes
Browse files
app.py
CHANGED
@@ -101,11 +101,14 @@ def process_uploaded_file(
|
|
101 |
vad = get_vad()
|
102 |
|
103 |
result = decode(recognizer, vad, in_filename)
|
|
|
104 |
|
105 |
srt_filename = Path(in_filename).with_suffix(".srt")
|
106 |
with open(srt_filename, "w", encoding="utf-8") as f:
|
107 |
f.write(result)
|
108 |
|
|
|
|
|
109 |
return (
|
110 |
(in_filename, srt_filename),
|
111 |
srt_filename,
|
|
|
101 |
vad = get_vad()
|
102 |
|
103 |
result = decode(recognizer, vad, in_filename)
|
104 |
+
logging.info(result)
|
105 |
|
106 |
srt_filename = Path(in_filename).with_suffix(".srt")
|
107 |
with open(srt_filename, "w", encoding="utf-8") as f:
|
108 |
f.write(result)
|
109 |
|
110 |
+
logging.info("Done")
|
111 |
+
|
112 |
return (
|
113 |
(in_filename, srt_filename),
|
114 |
srt_filename,
|