Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -47,8 +47,8 @@ def inference(audio):
|
|
47 |
# error = jiwer.wer(passage, result.text)
|
48 |
we_num = error * len(passage.value.split())
|
49 |
# print(f"WER is {we_num}")
|
50 |
-
|
51 |
-
|
52 |
|
53 |
return f"For a {audio_length} second audio, {we_num} errors were made, resulting in a final time of {audio_length + we_num}.\n\n{result.text}", gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
54 |
|
|
|
47 |
# error = jiwer.wer(passage, result.text)
|
48 |
we_num = error * len(passage.value.split())
|
49 |
# print(f"WER is {we_num}")
|
50 |
+
print(result.text)
|
51 |
+
print(passage.value)
|
52 |
|
53 |
return f"For a {audio_length} second audio, {we_num} errors were made, resulting in a final time of {audio_length + we_num}.\n\n{result.text}", gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
54 |
|