Browse Source

Create download_models.py

Xiaomeng Zhao 1 năm trước cách đây
mục cha
commit
7ce807f43f
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      docs/download_models.py

+ 4 - 0
docs/download_models.py

@@ -0,0 +1,4 @@
+# use modelscope sdk download models
+from modelscope import snapshot_download
+model_dir = snapshot_download('wanderkid/PDF-Extract-Kit')
+print(f"model dir is: {model_dir}/models")