manu commited on
Commit
bcc2fbb
β€’
1 Parent(s): 24e2747

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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().split())
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)