Spaces:
Running on Zero
Running on Zero
Commit ·
dffa66f
1
Parent(s): ebedb7e
Switch from requirements.txt to uv for reproducible dependency management
Browse files- Add pyproject.toml with project metadata and uv source overrides for
accelerate, diffusers, and peft (pinned to git HEAD commits via uv lock)
- Add uv.lock (95 packages, including pinned git commits for git deps)
- Remove requirements.txt and pre-requirements.txt (uv replaces both)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- pre-requirements.txt +0 -1
- pyproject.toml +29 -0
- requirements.txt +0 -14
- uv.lock +0 -0
pre-requirements.txt
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
pip>=23.0.0
|
|
|
|
|
|
pyproject.toml
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[project]
|
| 2 |
+
name = "firered-image-edit"
|
| 3 |
+
version = "1.0.0"
|
| 4 |
+
requires-python = ">=3.13"
|
| 5 |
+
dependencies = [
|
| 6 |
+
"transformers>=5.0.0",
|
| 7 |
+
"huggingface_hub",
|
| 8 |
+
"sentencepiece",
|
| 9 |
+
"torchvision",
|
| 10 |
+
"kernels",
|
| 11 |
+
"spaces",
|
| 12 |
+
"hf_xet",
|
| 13 |
+
"gradio>=5.0.0",
|
| 14 |
+
"torch",
|
| 15 |
+
"numpy",
|
| 16 |
+
"av",
|
| 17 |
+
# git deps — pinned to exact commits by uv lock
|
| 18 |
+
"accelerate",
|
| 19 |
+
"diffusers",
|
| 20 |
+
"peft",
|
| 21 |
+
]
|
| 22 |
+
|
| 23 |
+
[tool.uv]
|
| 24 |
+
package = false
|
| 25 |
+
|
| 26 |
+
[tool.uv.sources]
|
| 27 |
+
accelerate = { git = "https://github.com/huggingface/accelerate.git" }
|
| 28 |
+
diffusers = { git = "https://github.com/huggingface/diffusers.git" }
|
| 29 |
+
peft = { git = "https://github.com/huggingface/peft.git" }
|
requirements.txt
DELETED
|
@@ -1,14 +0,0 @@
|
|
| 1 |
-
git+https://github.com/huggingface/accelerate.git
|
| 2 |
-
git+https://github.com/huggingface/diffusers.git
|
| 3 |
-
git+https://github.com/huggingface/peft.git
|
| 4 |
-
transformers>=5.0.0
|
| 5 |
-
huggingface_hub
|
| 6 |
-
sentencepiece
|
| 7 |
-
torchvision
|
| 8 |
-
kernels
|
| 9 |
-
spaces
|
| 10 |
-
hf_xet
|
| 11 |
-
gradio>=5.0.0
|
| 12 |
-
torch
|
| 13 |
-
numpy
|
| 14 |
-
av
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|