Explorar el Código

Create download_models_hf.py

Xiaomeng Zhao hace 1 año
padre
commit
cc543669e8
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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")