Chrysoula commited on
Commit
c0d6c5e
·
1 Parent(s): 375f512

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -3,7 +3,9 @@ import gradio as gr
3
 
4
  pipe = pipeline(model="Hoft/whisper-small-swedish-asr") # change to "your-username/the-name-you-picked"
5
 
6
- def transcribe(audio):
 
 
7
  text = pipe(audio)["text"]
8
  return text
9
 
 
3
 
4
  pipe = pipeline(model="Hoft/whisper-small-swedish-asr") # change to "your-username/the-name-you-picked"
5
 
6
+ def transcribe(audio, file):
7
+ print(audio)
8
+ print(file)
9
  text = pipe(audio)["text"]
10
  return text
11