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
635418b6
Unverified
Commit
635418b6
authored
Feb 14, 2025
by
shniubobo
Browse files
feat(web_api)!: Make `is_json_md_dump` default to False
parent
792e08cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
projects/web_api/app.py
projects/web_api/app.py
+3
-3
No files found.
projects/web_api/app.py
View file @
635418b6
...
@@ -145,7 +145,7 @@ async def pdf_parse(
...
@@ -145,7 +145,7 @@ async def pdf_parse(
pdf_file
:
UploadFile
=
None
,
pdf_file
:
UploadFile
=
None
,
pdf_path
:
str
=
None
,
pdf_path
:
str
=
None
,
parse_method
:
str
=
"auto"
,
parse_method
:
str
=
"auto"
,
is_json_md_dump
:
bool
=
Tru
e
,
is_json_md_dump
:
bool
=
Fals
e
,
output_dir
:
str
=
"output"
,
output_dir
:
str
=
"output"
,
return_layout
:
bool
=
False
,
return_layout
:
bool
=
False
,
return_info
:
bool
=
False
,
return_info
:
bool
=
False
,
...
@@ -162,8 +162,8 @@ async def pdf_parse(
...
@@ -162,8 +162,8 @@ async def pdf_parse(
:param parse_method: Parsing method, can be auto, ocr, or txt. Default is auto. If
:param parse_method: Parsing method, can be auto, ocr, or txt. Default is auto. If
results are not satisfactory, try ocr
results are not satisfactory, try ocr
:param is_json_md_dump: Whether to write parsed data to .json and .md files. Default
:param is_json_md_dump: Whether to write parsed data to .json and .md files. Default
is Tru
e. Different stages of data will be written to different .json files (3
in
to Fals
e. Different stages of data will be written to different .json files (3
total), md content will be saved to .md file
in
total), md content will be saved to .md file
:param output_dir: Output directory for results. A folder named after the PDF file
:param output_dir: Output directory for results. A folder named after the PDF file
will be created to store all results
will be created to store all results
:param return_layout: Whether to return parsed PDF layout. Default to False
:param return_layout: Whether to return parsed PDF layout. Default to False
...
...
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