Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,8 @@ import gradio as gr
|
|
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 |
if audio is not None:
|
9 |
text = pipe(audio)["text"]
|
10 |
return text
|
|
|
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:",audio)
|
8 |
+
print("FILE:", file)
|
9 |
if audio is not None:
|
10 |
text = pipe(audio)["text"]
|
11 |
return text
|