Spaces:
Runtime error
Runtime error
csukuangfj
commited on
Commit
·
7767222
1
Parent(s):
bb15fb2
small fixes
Browse files
app.py
CHANGED
@@ -136,7 +136,7 @@ def process(
|
|
136 |
s.accept_wave_file(filename)
|
137 |
recognizer.decode_stream(s)
|
138 |
|
139 |
-
text = s.result.text
|
140 |
|
141 |
date_time = now.strftime("%Y-%m-%d %H:%M:%S.%f")
|
142 |
end = time.time()
|
|
|
136 |
s.accept_wave_file(filename)
|
137 |
recognizer.decode_stream(s)
|
138 |
|
139 |
+
text = s.result.text.strip()
|
140 |
|
141 |
date_time = now.strftime("%Y-%m-%d %H:%M:%S.%f")
|
142 |
end = time.time()
|