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
a0a9a8ad
Commit
a0a9a8ad
authored
Jun 26, 2024
by
quyuan
Browse files
update ci
parent
275feb5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tools/benchmark.py
tools/benchmark.py
+3
-0
No files found.
tools/benchmark.py
View file @
a0a9a8ad
...
...
@@ -14,6 +14,9 @@ def test_cli():
magicpdf_path
=
os
.
path
.
join
(
pdf_dev_path
,
"output"
)
cmd
=
'cd %s && export PYTHONPATH=. && find %s -type f -name "*.pdf" | xargs -I{} python magic_pdf/cli/magicpdf.py pdf-command --pdf {}'
%
(
code_path
,
magicpdf_path
)
os
.
system
(
cmd
)
rm_cmd
=
"rm -rf %s"
%
(
pdf_res_path
)
os
.
system
(
rm_cmd
)
os
.
makedirs
(
pdf_res_path
)
for
root
,
dirs
,
files
in
os
.
walk
(
pdf_res_path
):
for
magic_file
in
files
:
for
file_type
in
file_types
:
...
...
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