nata0801 commited on
Commit
b08c991
1 Parent(s): 9726882

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,7 +24,7 @@ def asr_transcript(audio_file, language):
24
  #stream = librosa.stream(audio_file.name, block_length=20, frame_length=16000, hop_length=16000)
25
 
26
  #read the file
27
- speech, sample_rate = librosa.load(input_file, 16000)
28
 
29
  if len(speech.shape) > 1:
30
  speech = speech[:, 0] + speech[:, 1]
@@ -44,5 +44,5 @@ gr.Interface(asr_transcript,
44
  gr.inputs.Radio(label="Pick a language/Выберите язык", choices=["English", "Russian"])],
45
  outputs = gr.outputs.Textbox(label="Output Text/Результат"),
46
  title="Automatic speech recognition with voice recorder in Russian and English",
47
- description = "This application displays transcribed text for given audio input",
48
  theme="grass").launch()
 
24
  #stream = librosa.stream(audio_file.name, block_length=20, frame_length=16000, hop_length=16000)
25
 
26
  #read the file
27
+ speech, sample_rate = librosa.load(audio_file, 16000)
28
 
29
  if len(speech.shape) > 1:
30
  speech = speech[:, 0] + speech[:, 1]
 
44
  gr.inputs.Radio(label="Pick a language/Выберите язык", choices=["English", "Russian"])],
45
  outputs = gr.outputs.Textbox(label="Output Text/Результат"),
46
  title="Automatic speech recognition with voice recorder in Russian and English",
47
+ description = "This application displays transcribed text for given audio input/Это приложение отображает текст Вашего голосового сообщения",
48
  theme="grass").launch()