Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,18 +10,14 @@ wer_metric = load("wer")
|
|
| 10 |
|
| 11 |
# Preload multiple ASR models for comparison
|
| 12 |
models = {
|
| 13 |
-
"Wav2Vec2
|
| 14 |
task="automatic-speech-recognition",
|
| 15 |
model="Devion333/wav2vec2-xls-r-300m-dv"
|
| 16 |
),
|
| 17 |
-
"
|
| 18 |
task="automatic-speech-recognition",
|
| 19 |
-
model="
|
| 20 |
),
|
| 21 |
-
"Wav2Vec2 (Alyaan)": pipeline(
|
| 22 |
-
task="automatic-speech-recognition",
|
| 23 |
-
model="shiimi/xls-r-300m-dv"
|
| 24 |
-
)
|
| 25 |
}
|
| 26 |
|
| 27 |
def transcribe(audio, chosen_models, reference):
|
|
|
|
| 10 |
|
| 11 |
# Preload multiple ASR models for comparison
|
| 12 |
models = {
|
| 13 |
+
"Wav2Vec2 ": pipeline(
|
| 14 |
task="automatic-speech-recognition",
|
| 15 |
model="Devion333/wav2vec2-xls-r-300m-dv"
|
| 16 |
),
|
| 17 |
+
"Whisper small": pipeline(
|
| 18 |
task="automatic-speech-recognition",
|
| 19 |
+
model="Devion333/whisper-small-dv-syn"
|
| 20 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
}
|
| 22 |
|
| 23 |
def transcribe(audio, chosen_models, reference):
|