Yehor commited on
Commit
3727315
·
verified ·
1 Parent(s): 5545d25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -108,8 +108,8 @@ def inference(file_name, clear_punctuation, progress=gr.Progress()):
108
  results.append(f"- WER: {wer_value} metric, {round(wer_value*100, 4)}%")
109
  results.append(f"- CER: {cer_value} metric, {round(cer_value*100, 4)}%")
110
  results.append('')
111
- results.append(f"- Accuracy on words: {100 - 100 * wer_value}%")
112
- results.append(f"- Accuracy on chars: {100 - 100 * cer_value}%")
113
  results.append('')
114
  results.append(f"- Inference time: {round(inference_time, 4)} seconds, {round(inference_time/60, 4)} mins, {round(inference_time/60/60, 4)} hours")
115
  results.append(f"- Audio duration: {round(audio_duration, 4)} seconds, {round(audio_duration/60/60, 4)} hours")
 
108
  results.append(f"- WER: {wer_value} metric, {round(wer_value*100, 4)}%")
109
  results.append(f"- CER: {cer_value} metric, {round(cer_value*100, 4)}%")
110
  results.append('')
111
+ results.append(f"- Accuracy on words: {round(100 - 100 * wer_value, 4)}%")
112
+ results.append(f"- Accuracy on chars: {round(100 - 100 * cer_value, 4)}%")
113
  results.append('')
114
  results.append(f"- Inference time: {round(inference_time, 4)} seconds, {round(inference_time/60, 4)} mins, {round(inference_time/60/60, 4)} hours")
115
  results.append(f"- Audio duration: {round(audio_duration, 4)} seconds, {round(audio_duration/60/60, 4)} hours")