Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
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
|
| 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 |
|