mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 12:32:30 +08:00
Added PEP 723 metadata to download_deps.py (#4988)
### What problem does this PR solve? Added PEP 723 metadata to download_deps.py ### Type of change - [x] Refactoring
This commit is contained in:
@ -1,8 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
#
|
||||
# Install this script's dependencies with pip3:
|
||||
# pip3 install huggingface-hub nltk
|
||||
|
||||
# PEP 723 metadata
|
||||
# /// script
|
||||
# requires-python = ">=3.10"
|
||||
# dependencies = [
|
||||
# "huggingface-hub",
|
||||
# "nltk",
|
||||
# ]
|
||||
# ///
|
||||
|
||||
from huggingface_hub import snapshot_download
|
||||
import nltk
|
||||
|
||||
Reference in New Issue
Block a user