NeonBohdan commited on
Commit
f6d75ca
1 Parent(s): 90e042f

Update to streaming_stt_nemo==0.2.0

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. requirements.txt +1 -1
app.py CHANGED
@@ -1,10 +1,10 @@
1
- from streaming_stt_nemo import Model
2
 
3
  import gradio as gr
4
 
5
 
6
 
7
- LANGUAGES = list(Model.langs.keys())
8
  default_lang = "en"
9
 
10
 
@@ -21,7 +21,7 @@ def transcribe(audio, language: str):
21
  engines[language] = Model(language)
22
 
23
  model = engines[language]
24
- text = model.stt_model.transcribe([audio])[0]
25
  return text
26
 
27
 
 
1
+ from streaming_stt_nemo import Model, available_languages
2
 
3
  import gradio as gr
4
 
5
 
6
 
7
+ LANGUAGES = available_languages
8
  default_lang = "en"
9
 
10
 
 
21
  engines[language] = Model(language)
22
 
23
  model = engines[language]
24
+ text = model.stt_file(audio)[0]
25
  return text
26
 
27
 
requirements.txt CHANGED
@@ -1 +1 @@
1
- streaming-stt-nemo==0.1.1
 
1
+ streaming-stt-nemo==0.2.0