Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix: silence deprecation in huggingface snapshot_download function (#8150)

Gifford Nowlandab67292aa39d
diff --git a/download_deps.py b/download_deps.py
index 9bb6c74bab..058cf258b0 100644
--- a/download_deps.py
+++ b/download_deps.py
@@ -50,7 +50,7 @@ repos = [
def download_model(repo_id):
local_dir = os.path.abspath(os.path.join("huggingface.co", repo_id))
os.makedirs(local_dir, exist_ok=True)
- snapshot_download(repo_id=repo_id, local_dir=local_dir, local_dir_use_symlinks=False)
+ snapshot_download(repo_id=repo_id, local_dir=local_dir)
if __name__ == "__main__":
@@ -74,4 +74,4 @@ if __name__ == "__main__":
for repo_id in repos:
print(f"Downloading huggingface repo {repo_id}...")
- download_model(repo_id)
\ No newline at end of file
+ download_model(repo_id)