mskov commited on
Commit
e4a4e02
β€’
1 Parent(s): 6699250

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -10,6 +10,18 @@ from datasets import load_dataset
10
 
11
  p = pipeline("automatic-speech-recognition")
12
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  def transcribe(audio, state=""):
14
  text = p(audio)["text"]
15
  state += text + " "
 
10
 
11
  p = pipeline("automatic-speech-recognition")
12
 
13
+ task_evaluator = evaluator("automatic-speech-recognition")
14
+ data = load_dataset("mskov/miso_test", "en", split="test[:40]")
15
+ results = task_evaluator.compute(
16
+ model_or_pipeline="https://huggingface.co/mskov/whisper_miso",
17
+ data=data,
18
+ input_column="path",
19
+ label_column="category",
20
+ metric="wer",
21
+ )
22
+ print(results)
23
+
24
+
25
  def transcribe(audio, state=""):
26
  text = p(audio)["text"]
27
  state += text + " "