akera commited on
Commit
d637eff
1 Parent(s): e79ab65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -34,9 +34,9 @@ def transcribe_audio(input_file, language,chunk_length_s=10,
34
  pipe.tokenizer.set_target_lang(target_lang_code)
35
  pipe.model.load_adapter(target_lang_code)
36
 
37
- # Read audio file
38
- audio_data = input_file.read()
39
- output = pipe(audio_data, chunk_length_s=chunk_length_s, stride_length_s=stride_length_s, return_timestamps=return_timestamps)
40
  return output
41
 
42
 
 
34
  pipe.tokenizer.set_target_lang(target_lang_code)
35
  pipe.model.load_adapter(target_lang_code)
36
 
37
+ # # Read audio file
38
+ # audio_data = input_file
39
+ output = pipe(input_file, chunk_length_s=chunk_length_s, stride_length_s=stride_length_s, return_timestamps=return_timestamps)
40
  return output
41
 
42