Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
3b9b95c3
"examples/sampling/vscode:/vscode.git/clone" did not exist on "6f0c89603c09514b2a6e07843f04e295c1e71b2b"
Unverified
Commit
3b9b95c3
authored
Nov 21, 2024
by
Xiaomeng Zhao
Committed by
GitHub
Nov 21, 2024
Browse files
Merge pull request #1036 from icecraft/fix/remove_test_code
parents
6c8f5638
22008b82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
magic_pdf/data/read_api.py
magic_pdf/data/read_api.py
+1
-1
No files found.
magic_pdf/data/read_api.py
View file @
3b9b95c3
...
@@ -35,7 +35,7 @@ def read_jsonl(
...
@@ -35,7 +35,7 @@ def read_jsonl(
jsonl_d
=
[
jsonl_d
=
[
json
.
loads
(
line
)
for
line
in
jsonl_bits
.
decode
().
split
(
'
\n
'
)
if
line
.
strip
()
json
.
loads
(
line
)
for
line
in
jsonl_bits
.
decode
().
split
(
'
\n
'
)
if
line
.
strip
()
]
]
for
d
in
jsonl_d
[:
5
]
:
for
d
in
jsonl_d
:
pdf_path
=
d
.
get
(
'file_location'
,
''
)
or
d
.
get
(
'path'
,
''
)
pdf_path
=
d
.
get
(
'file_location'
,
''
)
or
d
.
get
(
'path'
,
''
)
if
len
(
pdf_path
)
==
0
:
if
len
(
pdf_path
)
==
0
:
raise
EmptyData
(
'pdf file location is empty'
)
raise
EmptyData
(
'pdf file location is empty'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment