Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,12 +14,12 @@ from streaming_stt_nemo import Model
|
|
14 |
|
15 |
number_to_word = inflect.engine()
|
16 |
|
17 |
-
default_lang = "
|
18 |
|
19 |
engines = { default_lang: Model(default_lang) }
|
20 |
|
21 |
def transcribe(audio):
|
22 |
-
lang = "
|
23 |
model = engines[lang]
|
24 |
text = model.stt_file(audio)[0]
|
25 |
return text
|
|
|
14 |
|
15 |
number_to_word = inflect.engine()
|
16 |
|
17 |
+
default_lang = "ru"
|
18 |
|
19 |
engines = { default_lang: Model(default_lang) }
|
20 |
|
21 |
def transcribe(audio):
|
22 |
+
lang = "ru"
|
23 |
model = engines[lang]
|
24 |
text = model.stt_file(audio)[0]
|
25 |
return text
|