Datasets:
pierreguillou
commited on
Commit
•
b89e0d2
1
Parent(s):
b073692
Update DocLayNet-small.py
Browse files- DocLayNet-small.py +1 -1
DocLayNet-small.py
CHANGED
@@ -208,7 +208,7 @@ class DocLayNet(datasets.GeneratorSmalldBuilder):
|
|
208 |
pdf_path = pdf_path.replace("json", "pdf")
|
209 |
with open(pdf_path, "rb") as pdf_file:
|
210 |
pdf_bytes = pdf_file.read()
|
211 |
-
pdf_encoded_string =
|
212 |
# get all data
|
213 |
|
214 |
for item in data["metadata"]:
|
|
|
208 |
pdf_path = pdf_path.replace("json", "pdf")
|
209 |
with open(pdf_path, "rb") as pdf_file:
|
210 |
pdf_bytes = pdf_file.read()
|
211 |
+
pdf_encoded_string = base64.b64encode(pdf_bytes)
|
212 |
# get all data
|
213 |
|
214 |
for item in data["metadata"]:
|