ahmedghani commited on
Commit
076c808
1 Parent(s): 45f4e47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ print("ASR model loaded!")
19
 
20
  def transcribe_audio(audiopath):
21
  audio_input, sr = sf.read(audiopath)
22
- return pipe(audio_input, return_tensors=False, padding=True, max_new_tokens=500)['text']
23
 
24
  def separator(audio, rec_audio, example):
25
  outputs= {}
 
19
 
20
  def transcribe_audio(audiopath):
21
  audio_input, sr = sf.read(audiopath)
22
+ return pipe(audio_input, max_new_tokens=500)['text']
23
 
24
  def separator(audio, rec_audio, example):
25
  outputs= {}