Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -134,7 +134,7 @@ def get_vectordb(text, images, img_doc_files):
|
|
134 |
def extract_only_text(reader):
|
135 |
text = ""
|
136 |
for _, page in enumerate(reader.pages):
|
137 |
-
text
|
138 |
return text.strip()
|
139 |
|
140 |
|
|
|
134 |
def extract_only_text(reader):
|
135 |
text = ""
|
136 |
for _, page in enumerate(reader.pages):
|
137 |
+
text += page.extract_text()
|
138 |
return text.strip()
|
139 |
|
140 |
|