Browse Source

Create download_models_hf.py

Xiaomeng Zhao 1 năm trước cách đây
mục cha
commit
cc543669e8
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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")