Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def youtube_transcribe(url):
|
|
23 |
|
24 |
path = youtube_link(url)
|
25 |
|
26 |
-
audio_dataset = Dataset.from_dict({"audio": path}).cast_column("audio", Audio(sampling_rate=16000))
|
27 |
text = pipe1(audio_dataset["audio"])["text"]
|
28 |
|
29 |
with gr.Blocks() as demo:
|
|
|
23 |
|
24 |
path = youtube_link(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:
|