Tlanextli commited on
Commit
ff8667c
·
1 Parent(s): dc74cbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def transcribeFile(audio_path : str) -> str:
15
 
16
  def translateAudio(audio_path):
17
  translationOutput = asr_pipe_whisper(audio_path, max_new_tokens=256, generate_kwargs={"task":"translate"})
18
- return translationOutput["text"]
19
 
20
  def transcribeFileMulti(inputlang, audio_path : str) -> str:
21
  if inputlang == "English":
 
15
 
16
  def translateAudio(audio_path):
17
  translationOutput = asr_pipe_whisper(audio_path, max_new_tokens=256, generate_kwargs={"task":"translate"})
18
+ return translationOutput
19
 
20
  def transcribeFileMulti(inputlang, audio_path : str) -> str:
21
  if inputlang == "English":