freeja commited on
Commit
ac45433
1 Parent(s): c6750c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ from gtts import gTTS
8
  pipe = pipeline(model="freeja/lab2-whisper-sv")
9
 
10
  def transcribe_audio(audio,language):
11
- transcribed = pipe(audio,"text")
12
  result = "Transcribed text\n"
13
  result += transcribed + "\n"
14
  result += "Translated text\n"
 
8
  pipe = pipeline(model="freeja/lab2-whisper-sv")
9
 
10
  def transcribe_audio(audio,language):
11
+ transcribed = pipe(audio)["text"]
12
  result = "Transcribed text\n"
13
  result += transcribed + "\n"
14
  result += "Translated text\n"