ソースを参照

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
tags/v0.17.0
Zhichang Yu 8ヶ月前
コミット
6daae7f226
コミッターのメールアドレスに関連付けられたアカウントが存在しません
2個のファイルの変更9行の追加5行の削除
  1. 1
    2
      docs/guides/develop/build_docker_image.mdx
  2. 8
    3
      download_deps.py

+ 1
- 2
docs/guides/develop/build_docker_image.mdx ファイルの表示

@@ -57,8 +57,7 @@ While we also test RAGFlow on ARM64 platforms, we do not maintain RAGFlow Docker
```bash
git clone https://github.com/infiniflow/ragflow.git
cd ragflow/
pip3 install huggingface_hub nltk
python3 download_deps.py
uv run download_deps.py
docker build -f Dockerfile.deps -t infiniflow/ragflow_deps .
docker build -f Dockerfile -t infiniflow/ragflow:nightly .
docker build --build-arg LIGHTEN=1 -f Dockerfile -t infiniflow/ragflow:nightly-slim .

+ 8
- 3
download_deps.py ファイルの表示

@@ -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

読み込み中…
キャンセル
保存