Spaces:
Running
on
Zero
Running
on
Zero
Fix timestamps for YouTube URLs
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ def yt_transcribe(yt_url, return_timestamps=False):
|
|
58 |
stream = yt.streams.filter(only_audio=True)[0]
|
59 |
stream.download(filename="audio.mp3")
|
60 |
|
61 |
-
text = transcribe("audio.mp3")
|
62 |
|
63 |
return html_embed_str, text
|
64 |
|
|
|
58 |
stream = yt.streams.filter(only_audio=True)[0]
|
59 |
stream.download(filename="audio.mp3")
|
60 |
|
61 |
+
text = transcribe("audio.mp3", return_timestamps=return_timestamps)
|
62 |
|
63 |
return html_embed_str, text
|
64 |
|