Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,7 @@ st.markdown("""
|
|
84 |
</style>
|
85 |
""", unsafe_allow_html=True)
|
86 |
|
87 |
-
col1, col2, col3 = st.columns([1, 0
|
88 |
with col2:
|
89 |
st.image("army.png", width=240)
|
90 |
|
@@ -103,7 +103,7 @@ def get_pdf_index():
|
|
103 |
loader = PyPDFLoader('test1.pdf')
|
104 |
documents = loader.load()
|
105 |
|
106 |
-
splitter = RecursiveCharacterTextSplitter(chunk_size=
|
107 |
texts = []
|
108 |
for doc in documents:
|
109 |
texts.extend(splitter.split_text(doc.page_content))
|
|
|
84 |
</style>
|
85 |
""", unsafe_allow_html=True)
|
86 |
|
87 |
+
col1, col2, col3 = st.columns([1, 0, 1])
|
88 |
with col2:
|
89 |
st.image("army.png", width=240)
|
90 |
|
|
|
103 |
loader = PyPDFLoader('test1.pdf')
|
104 |
documents = loader.load()
|
105 |
|
106 |
+
splitter = RecursiveCharacterTextSplitter(chunk_size=2000, chunk_overlap=128)
|
107 |
texts = []
|
108 |
for doc in documents:
|
109 |
texts.extend(splitter.split_text(doc.page_content))
|