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
e0c17eea
Commit
e0c17eea
authored
Jun 20, 2024
by
blue
Browse files
feat: remove unsed params
parent
fbe3326c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
magic_pdf/cli/magicpdf.py
magic_pdf/cli/magicpdf.py
+0
-10
No files found.
magic_pdf/cli/magicpdf.py
View file @
e0c17eea
...
@@ -252,21 +252,11 @@ def local_json_command(local_json, method):
...
@@ -252,21 +252,11 @@ def local_json_command(local_json, method):
s3_file_path
=
jso
.
get
(
"path"
)
s3_file_path
=
jso
.
get
(
"path"
)
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
,
)
)
...
...
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