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
9669111f
Unverified
Commit
9669111f
authored
Jun 13, 2025
by
Xiaomeng Zhao
Committed by
GitHub
Jun 13, 2025
Browse files
Merge pull request #2633 from myhloli/dev
fix: revert json_url in configure_model to use original MinerU template
parents
3376f3a7
fdca2c8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
mineru/cli/models_download.py
mineru/cli/models_download.py
+1
-2
No files found.
mineru/cli/models_download.py
View file @
9669111f
...
@@ -42,8 +42,7 @@ def download_and_modify_json(url, local_filename, modifications):
...
@@ -42,8 +42,7 @@ def download_and_modify_json(url, local_filename, modifications):
def
configure_model
(
model_dir
,
model_type
):
def
configure_model
(
model_dir
,
model_type
):
"""配置模型"""
"""配置模型"""
# json_url = 'https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/mineru.template.json'
json_url
=
'https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/mineru.template.json'
json_url
=
'https://gcore.jsdelivr.net/gh/myhloli/Magic-PDF@dev/mineru.template.json'
config_file_name
=
'mineru.json'
config_file_name
=
'mineru.json'
home_dir
=
os
.
path
.
expanduser
(
'~'
)
home_dir
=
os
.
path
.
expanduser
(
'~'
)
config_file
=
os
.
path
.
join
(
home_dir
,
config_file_name
)
config_file
=
os
.
path
.
join
(
home_dir
,
config_file_name
)
...
...
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