Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,6 +25,8 @@ def youtube_transcribe(url):
|
|
25 |
|
26 |
audio_dataset = Dataset.from_dict({"audio": list(path)}).cast_column("audio", Audio(sampling_rate=16000))
|
27 |
text = pipe1(audio_dataset["audio"])["text"]
|
|
|
|
|
28 |
|
29 |
with gr.Blocks() as demo:
|
30 |
gr.Markdown("Whisper Small Swedish + Swedish GPT")
|
|
|
25 |
|
26 |
audio_dataset = Dataset.from_dict({"audio": list(path)}).cast_column("audio", Audio(sampling_rate=16000))
|
27 |
text = pipe1(audio_dataset["audio"])["text"]
|
28 |
+
|
29 |
+
return text
|
30 |
|
31 |
with gr.Blocks() as demo:
|
32 |
gr.Markdown("Whisper Small Swedish + Swedish GPT")
|