Update app.py
Browse files
app.py
CHANGED
|
@@ -48,6 +48,7 @@ def main():
|
|
| 48 |
if st.button("upload show"):
|
| 49 |
with st.spinner("showing"):
|
| 50 |
#get pdf text
|
|
|
|
| 51 |
raw_text=get_pdf_text(pdf_docs)
|
| 52 |
text_splitter = CharacterTextSplitter(chunk_size=300, chunk_overlap=20)
|
| 53 |
docs = text_splitter.split_documents(raw_text)
|
|
|
|
| 48 |
if st.button("upload show"):
|
| 49 |
with st.spinner("showing"):
|
| 50 |
#get pdf text
|
| 51 |
+
from langchain.text_splitter import CharacterTextSplitter
|
| 52 |
raw_text=get_pdf_text(pdf_docs)
|
| 53 |
text_splitter = CharacterTextSplitter(chunk_size=300, chunk_overlap=20)
|
| 54 |
docs = text_splitter.split_documents(raw_text)
|