Browse Source

Create download_models_hf.py

Xiaomeng Zhao 1 year ago
parent
commit
cc543669e8
1 changed files with 3 additions and 0 deletions
  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")