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
54892406
Commit
54892406
authored
Jun 30, 2025
by
myhloli
Browse files
fix: update log messages for compression success and failure
parent
2b57757b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mineru/cli/gradio_app.py
mineru/cli/gradio_app.py
+2
-2
No files found.
mineru/cli/gradio_app.py
View file @
54892406
...
...
@@ -100,9 +100,9 @@ async def to_markdown(file_path, end_pages=10, is_ocr=False, formula_enable=True
archive_zip_path
=
os
.
path
.
join
(
'./output'
,
str_sha256
(
local_md_dir
)
+
'.zip'
)
zip_archive_success
=
compress_directory_to_zip
(
local_md_dir
,
archive_zip_path
)
if
zip_archive_success
==
0
:
logger
.
info
(
'
压缩成功
'
)
logger
.
info
(
'
Compression successful
'
)
else
:
logger
.
error
(
'
压缩失败
'
)
logger
.
error
(
'
Compression failed
'
)
md_path
=
os
.
path
.
join
(
local_md_dir
,
file_name
+
'.md'
)
with
open
(
md_path
,
'r'
,
encoding
=
'utf-8'
)
as
f
:
txt_content
=
f
.
read
()
...
...
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