Spaces:
Sleeping
Sleeping
updated app again
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def extract_text_from_pdf(pdf_path):
|
|
26 |
text += page.extract_text()
|
27 |
return text
|
28 |
if pdf_path:
|
29 |
-
pdf_text = extract_text_from_pdf(
|
30 |
doc = Document(content=pdf_text, meta={"pdf_path":pdf_file_path}) # Home work look into document data structure (shape)
|
31 |
docs = [doc]
|
32 |
print(doc)
|
|
|
26 |
text += page.extract_text()
|
27 |
return text
|
28 |
if pdf_path:
|
29 |
+
pdf_text = extract_text_from_pdf(pdf_path)
|
30 |
doc = Document(content=pdf_text, meta={"pdf_path":pdf_file_path}) # Home work look into document data structure (shape)
|
31 |
docs = [doc]
|
32 |
print(doc)
|