Jelajahi Sumber

feat: update model download URL to use Magic-PDF repository

myhloli 5 bulan lalu
induk
melakukan
0eb651e320
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      mineru/cli/models_download.py

+ 2 - 1
mineru/cli/models_download.py

@@ -42,7 +42,8 @@ def download_and_modify_json(url, local_filename, modifications):
 
 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'
     home_dir = os.path.expanduser('~')
     config_file = os.path.join(home_dir, config_file_name)