versae commited on
Commit
3d53725
·
verified ·
1 Parent(s): 7271fdd

Fix timestamps for YouTube URLs

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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