Spaces:
Running
Running
fix breaking change in API
Browse files
document_qa/document_qa_engine.py
CHANGED
|
@@ -494,7 +494,7 @@ class DocumentQAEngine:
|
|
| 494 |
print("File", pdf_file_path)
|
| 495 |
filename = Path(pdf_file_path).stem
|
| 496 |
coordinates = True # if chunk_size == -1 else False
|
| 497 |
-
structure = self.grobid_processor.
|
| 498 |
|
| 499 |
biblio = structure['biblio']
|
| 500 |
biblio['filename'] = filename.replace(" ", "_")
|
|
|
|
| 494 |
print("File", pdf_file_path)
|
| 495 |
filename = Path(pdf_file_path).stem
|
| 496 |
coordinates = True # if chunk_size == -1 else False
|
| 497 |
+
structure = self.grobid_processor.process_structure(pdf_file_path, coordinates=coordinates)
|
| 498 |
|
| 499 |
biblio = structure['biblio']
|
| 500 |
biblio['filename'] = filename.replace(" ", "_")
|