jorgik1 commited on
Commit
5694576
·
1 Parent(s): 246457b

Update chatbot.py

Browse files
Files changed (1) hide show
  1. chatbot.py +1 -1
chatbot.py CHANGED
@@ -48,7 +48,7 @@ class YouTubeChatbot:
48
  st.error("No transcript found for the video.")
49
  return None
50
 
51
- text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000,
52
  chunk_overlap=100)
53
  docs = text_splitter.split_documents(transcript)
54
  st.info("Number of documents: " + str(len(docs)))
 
48
  st.error("No transcript found for the video.")
49
  return None
50
 
51
+ text_splitter = RecursiveCharacterTextSplitter(chunk_size=500,
52
  chunk_overlap=100)
53
  docs = text_splitter.split_documents(transcript)
54
  st.info("Number of documents: " + str(len(docs)))