Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,13 +38,13 @@ def inference(audio):
|
|
38 |
])
|
39 |
|
40 |
error = jiwer.wer(
|
41 |
-
passage.value
|
42 |
result.text,
|
43 |
truth_transform=transformation,
|
44 |
hypothesis_transform=transformation
|
45 |
)
|
46 |
# error = jiwer.wer(passage, result.text)
|
47 |
-
we_num = error * len(passage.value
|
48 |
# print(f"WER is {we_num}")
|
49 |
# print(result.text)
|
50 |
# print(passage)
|
|
|
38 |
])
|
39 |
|
40 |
error = jiwer.wer(
|
41 |
+
passage.value,
|
42 |
result.text,
|
43 |
truth_transform=transformation,
|
44 |
hypothesis_transform=transformation
|
45 |
)
|
46 |
# error = jiwer.wer(passage, result.text)
|
47 |
+
we_num = error * len(passage.value.split())
|
48 |
# print(f"WER is {we_num}")
|
49 |
# print(result.text)
|
50 |
# print(passage)
|