Spaces:
Runtime error
Runtime error
bayartsogt
commited on
Commit
·
4b806e7
1
Parent(s):
a77192d
Update app.py
Browse files
app.py
CHANGED
@@ -6,14 +6,13 @@ from transformers import pipeline
|
|
6 |
from huggingface_hub import model_info
|
7 |
|
8 |
MODEL_NAME = "bayartsogt/whisper-small-mn-7" #this always needs to stay in line 8 :D sorry for the hackiness
|
|
|
9 |
|
10 |
"""
|
11 |
| model_id | WER | Keep Characters |
|
12 |
| bayartsogt/whisper-small-mn-7 | 32.6469 | " абвгдеёжзийклмноөпрстуүфхцчшъыьэюя.,?!" |
|
13 |
"""
|
14 |
|
15 |
-
lang = "mn"
|
16 |
-
|
17 |
device = 0 if torch.cuda.is_available() else "cpu"
|
18 |
pipe = pipeline(
|
19 |
task="automatic-speech-recognition",
|
|
|
6 |
from huggingface_hub import model_info
|
7 |
|
8 |
MODEL_NAME = "bayartsogt/whisper-small-mn-7" #this always needs to stay in line 8 :D sorry for the hackiness
|
9 |
+
lang = "mn"
|
10 |
|
11 |
"""
|
12 |
| model_id | WER | Keep Characters |
|
13 |
| bayartsogt/whisper-small-mn-7 | 32.6469 | " абвгдеёжзийклмноөпрстуүфхцчшъыьэюя.,?!" |
|
14 |
"""
|
15 |
|
|
|
|
|
16 |
device = 0 if torch.cuda.is_available() else "cpu"
|
17 |
pipe = pipeline(
|
18 |
task="automatic-speech-recognition",
|