Spaces:
Runtime error
Runtime error
Update RAG_utils.py
Browse files- RAG_utils.py +1 -1
RAG_utils.py
CHANGED
@@ -406,7 +406,7 @@ class PDFProcessor_Unstructured:
|
|
406 |
pdf_reader = PdfReader(uploaded_file)
|
407 |
|
408 |
# Extract document information
|
409 |
-
meta = pdf_reader.
|
410 |
|
411 |
# Retrieve title from document information
|
412 |
title = meta.title if meta and meta.title else 'Title not found'
|
|
|
406 |
pdf_reader = PdfReader(uploaded_file)
|
407 |
|
408 |
# Extract document information
|
409 |
+
meta = pdf_reader.metadata
|
410 |
|
411 |
# Retrieve title from document information
|
412 |
title = meta.title if meta and meta.title else 'Title not found'
|