Tlanextli commited on
Commit
dd29dab
·
1 Parent(s): ad7b84d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ asr_pipe_whisper = pipeline(task="automatic-speech-recognition", model="openai/w
11
 
12
  def transcribeFile(audio_path : str) -> str:
13
  #transcription = asr_pipe_audio2Text_Ge(audio_path)
14
- transcription = asr_pipe_whisper(audio_path, max_new_tokens=256, generate_kwargs={"task":"transcribe"}))
15
  return transcription["text"]
16
 
17
  def translateAudio(audio_path):
 
11
 
12
  def transcribeFile(audio_path : str) -> str:
13
  #transcription = asr_pipe_audio2Text_Ge(audio_path)
14
+ transcription = asr_pipe_whisper(audio_path, max_new_tokens=256, generate_kwargs={"task":"transcribe"})
15
  return transcription["text"]
16
 
17
  def translateAudio(audio_path):