pgilles commited on
Commit
f412278
Β·
1 Parent(s): 2327b6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -34,7 +34,8 @@ def load_data(input_file):
34
 
35
  def asr_pipe(input_file, input_file_microphone, chunks):
36
  input_file = input_file_microphone if input_file_microphone else input_file
37
- transcription = pipe(input_file, chunk_length_s= chunks)["text"]
 
38
 
39
  return transcription
40
 
 
34
 
35
  def asr_pipe(input_file, input_file_microphone, chunks):
36
  input_file = input_file_microphone if input_file_microphone else input_file
37
+ speech = load_data(input_file)
38
+ transcription = pipe(speech, chunk_length_s= chunks)["text"]
39
 
40
  return transcription
41