浏览代码

Create download_models_hf.py

Xiaomeng Zhao 1 年之前
父节点
当前提交
cc543669e8
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      docs/download_models_hf.py

+ 3 - 0
docs/download_models_hf.py

@@ -0,0 +1,3 @@
+from huggingface_hub import snapshot_download
+model_dir = snapshot_download('opendatalab/PDF-Extract-Kit')
+print(f"model dir is: {model_dir}/models")