Spaces:
Runtime error
Runtime error
Commit
·
c036d2a
1
Parent(s):
a8ff319
small fixes
Browse files
app.py
CHANGED
|
@@ -141,7 +141,7 @@ def process(
|
|
| 141 |
s.accept_wave_file(filename)
|
| 142 |
recognizer.decode_stream(s)
|
| 143 |
|
| 144 |
-
|
| 145 |
|
| 146 |
date_time = now.strftime("%Y-%m-%d %H:%M:%S.%f")
|
| 147 |
end = time.time()
|
|
@@ -164,9 +164,9 @@ def process(
|
|
| 164 |
)
|
| 165 |
|
| 166 |
logging.info(info)
|
| 167 |
-
logging.info(f"
|
| 168 |
|
| 169 |
-
return
|
| 170 |
|
| 171 |
|
| 172 |
title = "# Automatic Speech Recognition with Next-gen Kaldi"
|
|
|
|
| 141 |
s.accept_wave_file(filename)
|
| 142 |
recognizer.decode_stream(s)
|
| 143 |
|
| 144 |
+
text = s.result.text
|
| 145 |
|
| 146 |
date_time = now.strftime("%Y-%m-%d %H:%M:%S.%f")
|
| 147 |
end = time.time()
|
|
|
|
| 164 |
)
|
| 165 |
|
| 166 |
logging.info(info)
|
| 167 |
+
logging.info(f"repo_id: {repo_id}\nhyp:\n{text}")
|
| 168 |
|
| 169 |
+
return text, build_html_output(info)
|
| 170 |
|
| 171 |
|
| 172 |
title = "# Automatic Speech Recognition with Next-gen Kaldi"
|