Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -56,8 +56,7 @@ def inference(audio, gt: str):
|
|
56 |
# print(f"WER is {we_num}")
|
57 |
print(result.text, gt)
|
58 |
|
59 |
-
return f"For a {audio_length} second audio, {we_num} errors were made, resulting in a final time of {audio_length + we_num}.\n The adjusted speed is thus {round(60*len(gt.split())/(audio_length + we_num))} words per minute, you can compare to Eminem's top speed of 387 words per minute
|
60 |
-
\n\n{result.text}", gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
61 |
|
62 |
|
63 |
|
|
|
56 |
# print(f"WER is {we_num}")
|
57 |
print(result.text, gt)
|
58 |
|
59 |
+
return f"For a {audio_length} second audio, {we_num} errors were made, resulting in a final time of {audio_length + we_num}.\n The adjusted speed is thus {round(60*len(gt.split())/(audio_length + we_num))} words per minute, you can compare to Eminem's top speed of 387 words per minute !\n\n{result.text}", gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
|
|
60 |
|
61 |
|
62 |
|