acpotts commited on
Commit
6d2f21f
·
verified ·
1 Parent(s): 0f89af3

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -79,7 +79,7 @@ def process_text_file(file: AskFileResponse):
79
  raise ValueError("Provide a .txt or .pdf file")
80
  texts = [x.page_content for x in text_splitter.transform_documents(documents)]
81
 
82
- return text_splitter.split_documents(documents)
83
 
84
 
85
 
 
79
  raise ValueError("Provide a .txt or .pdf file")
80
  texts = [x.page_content for x in text_splitter.transform_documents(documents)]
81
 
82
+ return texts
83
 
84
 
85