M17idd commited on
Commit
16794cc
·
verified ·
1 Parent(s): eb82304

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.5, 1])
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=300, chunk_overlap=0)
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))