Commit 91208fb1 authored by myhloli's avatar myhloli
Browse files

fix: revert json_url in configure_model to use original MinerU template

parent 56265fec
...@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment