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
d3b3ea0f
Commit
d3b3ea0f
authored
Jun 12, 2025
by
myhloli
Browse files
fix: simplify path construction in models_download_utils.py
parent
0eb651e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mineru/utils/models_download_utils.py
mineru/utils/models_download_utils.py
+1
-1
No files found.
mineru/utils/models_download_utils.py
View file @
d3b3ea0f
...
...
@@ -21,7 +21,7 @@ def auto_download_and_get_model_root_path(relative_path: str, repo_mode='pipelin
root_path
=
local_models_config
.
get
(
repo_mode
,
None
)
if
not
root_path
:
raise
ValueError
(
f
"Local path for repo_mode '
{
repo_mode
}
' is not configured."
)
return
os
.
path
.
join
(
root_path
,
relative_path
.
strip
(
'/'
))
return
root_path
# 建立仓库模式到路径的映射
repo_mapping
=
{
...
...
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