pgilles commited on
Commit
6fd91c0
Β·
1 Parent(s): e293d82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -34,8 +34,7 @@ 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
- speech = load_data(input_file)
38
- transcription = pipe(speech, chunk_length_s= chunks)["text"]
39
 
40
  return transcription
41
 
 
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