Spaces:
Runtime error
Runtime error
Update RAG_utils.py
Browse files- RAG_utils.py +1 -1
RAG_utils.py
CHANGED
@@ -460,7 +460,7 @@ class PDFProcessor_Unstructured:
|
|
460 |
results = self.process_pdf()
|
461 |
title = self.extract_title_from_pdf(self.file_path)
|
462 |
logging.info("PDF processing completed successfully.")
|
463 |
-
return results, title
|
464 |
except Exception as e:
|
465 |
logging.error(f"Error processing PDF file: {e}", exc_info=True)
|
466 |
raise
|
|
|
460 |
results = self.process_pdf()
|
461 |
title = self.extract_title_from_pdf(self.file_path)
|
462 |
logging.info("PDF processing completed successfully.")
|
463 |
+
return (*results, title)
|
464 |
except Exception as e:
|
465 |
logging.error(f"Error processing PDF file: {e}", exc_info=True)
|
466 |
raise
|