Spaces:
Sleeping
Sleeping
Update chatbot.py
Browse files- 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=
|
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)))
|