Spaces:
Runtime error
Runtime error
down grade ASR
Browse files
app.py
CHANGED
@@ -68,11 +68,12 @@ examples = [
|
|
68 |
[w, w_, i, x, y] for w, w_, i, x, y in zip(ref_wavs, ref_wavs, refs_ids, refs_txt, refs_ppm)
|
69 |
]
|
70 |
|
71 |
-
p = pipeline(
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
)
|
|
|
76 |
|
77 |
# WER part
|
78 |
transformation = jiwer.Compose(
|
|
|
68 |
[w, w_, i, x, y] for w, w_, i, x, y in zip(ref_wavs, ref_wavs, refs_ids, refs_txt, refs_ppm)
|
69 |
]
|
70 |
|
71 |
+
# p = pipeline(
|
72 |
+
# "automatic-speech-recognition",
|
73 |
+
# model="KevinGeng/whipser_medium_en_PAL300_step25",
|
74 |
+
# device=0,
|
75 |
+
# )
|
76 |
+
p = pipeline("automatic-speech-recogntion", model="facebook/wav2vec2-base-960h")
|
77 |
|
78 |
# WER part
|
79 |
transformation = jiwer.Compose(
|