Spaces:
Running
on
Zero
Running
on
Zero
Update pdf/pdf_extractor.py
Browse files- pdf/pdf_extractor.py +4 -1
pdf/pdf_extractor.py
CHANGED
@@ -49,4 +49,7 @@ class PDFExtractor(Extractor):
|
|
49 |
feature = Feature.metadata({"type": "table", "page": int(page)})
|
50 |
contents.append(Content(content_type="application/json", data=json.dumps(content), features=[feature]))
|
51 |
|
52 |
-
return contents
|
|
|
|
|
|
|
|
49 |
feature = Feature.metadata({"type": "table", "page": int(page)})
|
50 |
contents.append(Content(content_type="application/json", data=json.dumps(content), features=[feature]))
|
51 |
|
52 |
+
return contents
|
53 |
+
|
54 |
+
def sample_input(self) -> Content:
|
55 |
+
return self.sample_scientific_pdf()
|