Spaces:
Runtime error
Runtime error
small fix
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def transcribe(audio, url):
|
|
49 |
fpath = download_from_youtube(url)
|
50 |
segment_paths, segment_start_times = divide_into_30s_segments(fpath)
|
51 |
|
52 |
-
audio_dataset = Dataset.from_dict({"audio":
|
53 |
print(audio_dataset)
|
54 |
text = pipe(audio_dataset)
|
55 |
print(type(text))
|
|
|
49 |
fpath = download_from_youtube(url)
|
50 |
segment_paths, segment_start_times = divide_into_30s_segments(fpath)
|
51 |
|
52 |
+
audio_dataset = Dataset.from_dict({"audio": segment_paths}).cast_column("audio", Audio())
|
53 |
print(audio_dataset)
|
54 |
text = pipe(audio_dataset)
|
55 |
print(type(text))
|