mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-15 08:25:58 +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:
parent
f9fe6ac642
commit
6daae7f226
@ -57,8 +57,7 @@ While we also test RAGFlow on ARM64 platforms, we do not maintain RAGFlow Docker
|
|||||||
```bash
|
```bash
|
||||||
git clone https://github.com/infiniflow/ragflow.git
|
git clone https://github.com/infiniflow/ragflow.git
|
||||||
cd ragflow/
|
cd ragflow/
|
||||||
pip3 install huggingface_hub nltk
|
uv run download_deps.py
|
||||||
python3 download_deps.py
|
|
||||||
docker build -f Dockerfile.deps -t infiniflow/ragflow_deps .
|
docker build -f Dockerfile.deps -t infiniflow/ragflow_deps .
|
||||||
docker build -f Dockerfile -t infiniflow/ragflow:nightly .
|
docker build -f Dockerfile -t infiniflow/ragflow:nightly .
|
||||||
docker build --build-arg LIGHTEN=1 -f Dockerfile -t infiniflow/ragflow:nightly-slim .
|
docker build --build-arg LIGHTEN=1 -f Dockerfile -t infiniflow/ragflow:nightly-slim .
|
||||||
|
@ -1,8 +1,13 @@
|
|||||||
#!/usr/bin/env python3
|
#!/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
|
from huggingface_hub import snapshot_download
|
||||||
import nltk
|
import nltk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user