Spaces:
Runtime error
Runtime error
solving indentation error
Browse files
app.py
CHANGED
|
@@ -122,8 +122,8 @@ def chat(file, question):
|
|
| 122 |
length_function = len,
|
| 123 |
)
|
| 124 |
|
| 125 |
-
|
| 126 |
-
|
| 127 |
|
| 128 |
|
| 129 |
pdf_path = file
|
|
|
|
| 122 |
length_function = len,
|
| 123 |
)
|
| 124 |
|
| 125 |
+
chunks = text_splitter.split_text(text)
|
| 126 |
+
return chunks
|
| 127 |
|
| 128 |
|
| 129 |
pdf_path = file
|