Update app.py
Browse files
app.py
CHANGED
@@ -8,14 +8,14 @@ os.system("pip install datasets")
|
|
8 |
os.system("pip install spicy")
|
9 |
os.system("pip install soundfile")
|
10 |
from evaluate import evaluator
|
11 |
-
from datasets import load_dataset
|
12 |
|
13 |
|
14 |
p = pipeline("automatic-speech-recognition")
|
15 |
|
16 |
task_evaluator = evaluator("automatic-speech-recognition")
|
17 |
#url = {"test" : "https://huggingface.co/datasets/mskov/miso_test/blob/main/test_set.parquet"}
|
18 |
-
data = load_dataset("mskov/miso_test")
|
19 |
results = task_evaluator.compute(
|
20 |
model_or_pipeline="https://huggingface.co/mskov/whisper_miso",
|
21 |
data=data,
|
|
|
8 |
os.system("pip install spicy")
|
9 |
os.system("pip install soundfile")
|
10 |
from evaluate import evaluator
|
11 |
+
from datasets import load_dataset, audio_dataset
|
12 |
|
13 |
|
14 |
p = pipeline("automatic-speech-recognition")
|
15 |
|
16 |
task_evaluator = evaluator("automatic-speech-recognition")
|
17 |
#url = {"test" : "https://huggingface.co/datasets/mskov/miso_test/blob/main/test_set.parquet"}
|
18 |
+
data = load_dataset("audiofile", data_dir="mskov/miso_test/test_set")
|
19 |
results = task_evaluator.compute(
|
20 |
model_or_pipeline="https://huggingface.co/mskov/whisper_miso",
|
21 |
data=data,
|