Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,9 +36,9 @@ def youtube_transcribe(url):
|
|
36 |
path_wav = convert_to_wav(path)
|
37 |
|
38 |
audio_dataset = Dataset.from_dict({"audio": [path_wav]}).cast_column("audio", Audio(sampling_rate=16000))
|
39 |
-
text = pipe1(audio_dataset["audio"])
|
40 |
|
41 |
-
return text
|
42 |
|
43 |
with gr.Blocks() as demo:
|
44 |
gr.Markdown("Whisper Small Swedish + Swedish GPT")
|
|
|
36 |
path_wav = convert_to_wav(path)
|
37 |
|
38 |
audio_dataset = Dataset.from_dict({"audio": [path_wav]}).cast_column("audio", Audio(sampling_rate=16000))
|
39 |
+
text = pipe1(audio_dataset["audio"])
|
40 |
|
41 |
+
return text[0]["text"]
|
42 |
|
43 |
with gr.Blocks() as demo:
|
44 |
gr.Markdown("Whisper Small Swedish + Swedish GPT")
|