Samarth991 commited on
Commit
5073e6b
·
1 Parent(s): 471d274

adding video examples as Radio and linking to fn

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -34,6 +34,7 @@ def get_text_from_youtube_link(video_link,max_video_length=800):
34
  video_text = ""
35
  video_id = video_link.split("watch?v=")[1].split("&")[0]
36
  srt = YouTubeTranscriptApi.get_transcript(video_id)
 
37
  for text_data in srt:
38
  video_text = video_text + " " + text_data.get("text")
39
  if len(video_text) > max_video_length:
 
34
  video_text = ""
35
  video_id = video_link.split("watch?v=")[1].split("&")[0]
36
  srt = YouTubeTranscriptApi.get_transcript(video_id)
37
+ print("SRT ": srt )
38
  for text_data in srt:
39
  video_text = video_text + " " + text_data.get("text")
40
  if len(video_text) > max_video_length: