Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|