Samarth991 commited on
Commit
51e2c63
·
1 Parent(s): 7b01357

positioning chat and options

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -37,8 +37,10 @@ def get_text_from_youtube_link(video_link,max_video_length=800):
37
  for text_data in srt:
38
  video_text = video_text + " " + text_data.get("text")
39
  if len(video_text) > max_video_length:
 
40
  return video_text[0:max_video_length]
41
  else:
 
42
  return video_text
43
 
44
  def process_documents(documents,data_chunk=1500,chunk_overlap=100):
 
37
  for text_data in srt:
38
  video_text = video_text + " " + text_data.get("text")
39
  if len(video_text) > max_video_length:
40
+ print(video_text)
41
  return video_text[0:max_video_length]
42
  else:
43
+ print(video_text)
44
  return video_text
45
 
46
  def process_documents(documents,data_chunk=1500,chunk_overlap=100):