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
81554804
Commit
81554804
authored
Jun 10, 2025
by
myhloli
Browse files
refactor: rename environment variable from MINERU_BACKEND to MINERU_MODEL_SOURCE
parent
284cec04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mineru/cli/client.py
mineru/cli/client.py
+1
-1
No files found.
mineru/cli/client.py
View file @
81554804
...
@@ -151,7 +151,7 @@ def main(input_path, output_dir, backend, lang, server_url, start_page_id, end_p
...
@@ -151,7 +151,7 @@ def main(input_path, output_dir, backend, lang, server_url, start_page_id, end_p
if
os
.
getenv
(
'MINERU_VIRTUAL_VRAM_SIZE'
,
None
)
is
None
:
if
os
.
getenv
(
'MINERU_VIRTUAL_VRAM_SIZE'
,
None
)
is
None
:
os
.
environ
[
'MINERU_VIRTUAL_VRAM_SIZE'
]
=
str
(
get_virtual_vram_size
())
os
.
environ
[
'MINERU_VIRTUAL_VRAM_SIZE'
]
=
str
(
get_virtual_vram_size
())
if
os
.
getenv
(
'MINERU_
BACKEND
'
,
None
)
is
None
:
if
os
.
getenv
(
'MINERU_
MODEL_SOURCE
'
,
None
)
is
None
:
os
.
environ
[
'MINERU_MODEL_SOURCE'
]
=
model_source
os
.
environ
[
'MINERU_MODEL_SOURCE'
]
=
model_source
os
.
makedirs
(
output_dir
,
exist_ok
=
True
)
os
.
makedirs
(
output_dir
,
exist_ok
=
True
)
...
...
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