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
fbe3326c
Commit
fbe3326c
authored
Jun 20, 2024
by
blue
Browse files
feat: remove unused params
parent
cc568d5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
magic_pdf/cli/magicpdf.py
magic_pdf/cli/magicpdf.py
+0
-18
No files found.
magic_pdf/cli/magicpdf.py
View file @
fbe3326c
...
@@ -206,21 +206,11 @@ def json_command(json, method):
...
@@ -206,21 +206,11 @@ def json_command(json, method):
pdf_file_name
=
Path
(
s3_file_path
).
stem
pdf_file_name
=
Path
(
s3_file_path
).
stem
pdf_data
=
read_s3_path
(
s3_file_path
)
pdf_data
=
read_s3_path
(
s3_file_path
)
local_image_dir
,
local_md_dir
=
prepare_env
(
pdf_file_name
,
method
)
local_image_rw
,
local_md_rw
=
DiskReaderWriter
(
local_image_dir
),
DiskReaderWriter
(
local_md_dir
)
do_parse
(
do_parse
(
pdf_file_name
,
pdf_file_name
,
pdf_data
,
pdf_data
,
jso
[
"doc_layout_result"
],
jso
[
"doc_layout_result"
],
method
,
method
,
local_image_rw
,
local_md_rw
,
os
.
path
.
basename
(
local_image_dir
),
local_md_dir
,
)
)
...
@@ -318,19 +308,11 @@ def pdf_command(pdf, model, method):
...
@@ -318,19 +308,11 @@ def pdf_command(pdf, model, method):
jso
=
json_parse
.
loads
(
get_model_json
(
model
))
jso
=
json_parse
.
loads
(
get_model_json
(
model
))
pdf_file_name
=
Path
(
pdf
).
stem
pdf_file_name
=
Path
(
pdf
).
stem
local_image_dir
,
local_md_dir
=
prepare_env
(
pdf_file_name
,
method
)
local_image_rw
,
local_md_rw
=
DiskReaderWriter
(
local_image_dir
),
DiskReaderWriter
(
local_md_dir
)
do_parse
(
do_parse
(
pdf_file_name
,
pdf_file_name
,
pdf_data
,
pdf_data
,
jso
,
jso
,
method
,
method
,
local_image_rw
,
local_md_rw
,
os
.
path
.
basename
(
local_image_dir
),
local_md_dir
,
)
)
...
...
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