ali121300 commited on
Commit
6e7bb59
·
verified ·
1 Parent(s): 97ca41e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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)