hysts HF staff commited on
Commit
75164b5
·
1 Parent(s): 4c1ec5c
Files changed (6) hide show
  1. .pre-commit-config.yaml +4 -27
  2. .vscode/settings.json +1 -5
  3. README.md +1 -1
  4. pyproject.toml +4 -4
  5. requirements.txt +15 -15
  6. uv.lock +0 -0
.pre-commit-config.yaml CHANGED
@@ -13,44 +13,21 @@ repos:
13
  args: ["--fix=lf"]
14
  - id: requirements-txt-fixer
15
  - id: trailing-whitespace
16
- - repo: https://github.com/myint/docformatter
17
- rev: v1.7.5
18
- hooks:
19
- - id: docformatter
20
- args: ["--in-place"]
21
  - repo: https://github.com/astral-sh/ruff-pre-commit
22
- rev: v0.8.4
23
  hooks:
24
  - id: ruff
25
  args: ["--fix"]
26
  - id: ruff-format
27
- args: ["--line-length", "119"]
28
  - repo: https://github.com/pre-commit/mirrors-mypy
29
- rev: v1.14.0
30
  hooks:
31
  - id: mypy
32
  args: ["--ignore-missing-imports"]
33
  additional_dependencies:
34
  [
35
  "types-python-slugify",
36
- "types-requests",
37
- "types-PyYAML",
38
  "types-pytz",
 
 
39
  ]
40
- - repo: https://github.com/kynan/nbstripout
41
- rev: 0.8.1
42
- hooks:
43
- - id: nbstripout
44
- args:
45
- [
46
- "--extra-keys",
47
- "metadata.interpreter metadata.kernelspec cell.metadata.pycharm",
48
- ]
49
- - repo: https://github.com/nbQA-dev/nbQA
50
- rev: 1.9.1
51
- hooks:
52
- - id: nbqa-black
53
- - id: nbqa-pyupgrade
54
- args: ["--py37-plus"]
55
- - id: nbqa-isort
56
- args: ["--float-to-top"]
 
13
  args: ["--fix=lf"]
14
  - id: requirements-txt-fixer
15
  - id: trailing-whitespace
 
 
 
 
 
16
  - repo: https://github.com/astral-sh/ruff-pre-commit
17
+ rev: v0.8.6
18
  hooks:
19
  - id: ruff
20
  args: ["--fix"]
21
  - id: ruff-format
 
22
  - repo: https://github.com/pre-commit/mirrors-mypy
23
+ rev: v1.14.1
24
  hooks:
25
  - id: mypy
26
  args: ["--ignore-missing-imports"]
27
  additional_dependencies:
28
  [
29
  "types-python-slugify",
 
 
30
  "types-pytz",
31
+ "types-PyYAML",
32
+ "types-requests",
33
  ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.vscode/settings.json CHANGED
@@ -13,9 +13,5 @@
13
  "files.insertFinalNewline": false
14
  },
15
  "notebook.output.scrolling": true,
16
- "notebook.formatOnCellExecution": true,
17
- "notebook.formatOnSave.enabled": true,
18
- "notebook.codeActionsOnSave": {
19
- "source.organizeImports": "explicit"
20
- }
21
  }
 
13
  "files.insertFinalNewline": false
14
  },
15
  "notebook.output.scrolling": true,
16
+ "notebook.formatOnSave.enabled": true
 
 
 
 
17
  }
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🔥
4
  colorFrom: yellow
5
  colorTo: indigo
6
  sdk: gradio
7
- sdk_version: 5.9.1
8
  app_file: app.py
9
  pinned: false
10
  suggested_hardware: t4-small
 
4
  colorFrom: yellow
5
  colorTo: indigo
6
  sdk: gradio
7
+ sdk_version: 5.12.0
8
  app_file: app.py
9
  pinned: false
10
  suggested_hardware: t4-small
pyproject.toml CHANGED
@@ -8,12 +8,12 @@ dependencies = [
8
  "accelerate>=1.2.1",
9
  "controlnet-aux>=0.0.9",
10
  "diffusers>=0.32.1",
11
- "gradio>=5.9.1",
12
- "hf-transfer>=0.1.8",
13
- "spaces>=0.31.1",
14
  "torch==2.4.0",
15
  "torchvision>=0.19.0",
16
- "transformers>=4.47.1",
17
  ]
18
 
19
  [tool.ruff]
 
8
  "accelerate>=1.2.1",
9
  "controlnet-aux>=0.0.9",
10
  "diffusers>=0.32.1",
11
+ "gradio>=5.12.0",
12
+ "hf-transfer>=0.1.9",
13
+ "spaces>=0.32.0",
14
  "torch==2.4.0",
15
  "torchvision>=0.19.0",
16
+ "transformers>=4.48.0",
17
  ]
18
 
19
  [tool.ruff]
requirements.txt CHANGED
@@ -6,7 +6,7 @@ aiofiles==23.2.1
6
  # via gradio
7
  annotated-types==0.7.0
8
  # via pydantic
9
- anyio==4.7.0
10
  # via
11
  # gradio
12
  # httpx
@@ -47,17 +47,17 @@ fsspec==2024.12.0
47
  # gradio-client
48
  # huggingface-hub
49
  # torch
50
- gradio==5.9.1
51
  # via
52
  # blip-diffusion (pyproject.toml)
53
  # spaces
54
- gradio-client==1.5.2
55
  # via gradio
56
  h11==0.14.0
57
  # via
58
  # httpcore
59
  # uvicorn
60
- hf-transfer==0.1.8
61
  # via blip-diffusion (pyproject.toml)
62
  httpcore==1.0.7
63
  # via httpx
@@ -67,7 +67,7 @@ httpx==0.28.1
67
  # gradio-client
68
  # safehttpx
69
  # spaces
70
- huggingface-hub==0.27.0
71
  # via
72
  # accelerate
73
  # controlnet-aux
@@ -154,7 +154,7 @@ nvidia-nvtx-cu12==12.1.105
154
  # via torch
155
  opencv-python-headless==4.10.0.84
156
  # via controlnet-aux
157
- orjson==3.10.13
158
  # via gradio
159
  packaging==24.2
160
  # via
@@ -168,7 +168,7 @@ packaging==24.2
168
  # transformers
169
  pandas==2.2.3
170
  # via gradio
171
- pillow==10.3.0
172
  # via
173
  # controlnet-aux
174
  # diffusers
@@ -180,7 +180,7 @@ psutil==5.9.8
180
  # via
181
  # accelerate
182
  # spaces
183
- pydantic==2.10.4
184
  # via
185
  # fastapi
186
  # gradio
@@ -189,7 +189,7 @@ pydantic-core==2.27.2
189
  # via pydantic
190
  pydub==0.25.1
191
  # via gradio
192
- pygments==2.18.0
193
  # via rich
194
  python-dateutil==2.9.0.post0
195
  # via pandas
@@ -215,18 +215,18 @@ requests==2.32.3
215
  # transformers
216
  rich==13.9.4
217
  # via typer
218
- ruff==0.8.4
219
  # via gradio
220
  safehttpx==0.1.6
221
  # via gradio
222
- safetensors==0.4.5
223
  # via
224
  # accelerate
225
  # diffusers
226
  # transformers
227
  scikit-image==0.25.0
228
  # via controlnet-aux
229
- scipy==1.14.1
230
  # via
231
  # controlnet-aux
232
  # scikit-image
@@ -238,7 +238,7 @@ six==1.17.0
238
  # via python-dateutil
239
  sniffio==1.3.1
240
  # via anyio
241
- spaces==0.31.1
242
  # via blip-diffusion (pyproject.toml)
243
  starlette==0.41.3
244
  # via
@@ -246,7 +246,7 @@ starlette==0.41.3
246
  # gradio
247
  sympy==1.13.3
248
  # via torch
249
- tifffile==2024.12.12
250
  # via scikit-image
251
  timm==0.6.7
252
  # via controlnet-aux
@@ -270,7 +270,7 @@ tqdm==4.67.1
270
  # via
271
  # huggingface-hub
272
  # transformers
273
- transformers==4.47.1
274
  # via blip-diffusion (pyproject.toml)
275
  triton==3.0.0
276
  # via torch
 
6
  # via gradio
7
  annotated-types==0.7.0
8
  # via pydantic
9
+ anyio==4.8.0
10
  # via
11
  # gradio
12
  # httpx
 
47
  # gradio-client
48
  # huggingface-hub
49
  # torch
50
+ gradio==5.12.0
51
  # via
52
  # blip-diffusion (pyproject.toml)
53
  # spaces
54
+ gradio-client==1.5.4
55
  # via gradio
56
  h11==0.14.0
57
  # via
58
  # httpcore
59
  # uvicorn
60
+ hf-transfer==0.1.9
61
  # via blip-diffusion (pyproject.toml)
62
  httpcore==1.0.7
63
  # via httpx
 
67
  # gradio-client
68
  # safehttpx
69
  # spaces
70
+ huggingface-hub==0.27.1
71
  # via
72
  # accelerate
73
  # controlnet-aux
 
154
  # via torch
155
  opencv-python-headless==4.10.0.84
156
  # via controlnet-aux
157
+ orjson==3.10.14
158
  # via gradio
159
  packaging==24.2
160
  # via
 
168
  # transformers
169
  pandas==2.2.3
170
  # via gradio
171
+ pillow==11.1.0
172
  # via
173
  # controlnet-aux
174
  # diffusers
 
180
  # via
181
  # accelerate
182
  # spaces
183
+ pydantic==2.10.5
184
  # via
185
  # fastapi
186
  # gradio
 
189
  # via pydantic
190
  pydub==0.25.1
191
  # via gradio
192
+ pygments==2.19.1
193
  # via rich
194
  python-dateutil==2.9.0.post0
195
  # via pandas
 
215
  # transformers
216
  rich==13.9.4
217
  # via typer
218
+ ruff==0.9.1
219
  # via gradio
220
  safehttpx==0.1.6
221
  # via gradio
222
+ safetensors==0.5.2
223
  # via
224
  # accelerate
225
  # diffusers
226
  # transformers
227
  scikit-image==0.25.0
228
  # via controlnet-aux
229
+ scipy==1.15.1
230
  # via
231
  # controlnet-aux
232
  # scikit-image
 
238
  # via python-dateutil
239
  sniffio==1.3.1
240
  # via anyio
241
+ spaces==0.32.0
242
  # via blip-diffusion (pyproject.toml)
243
  starlette==0.41.3
244
  # via
 
246
  # gradio
247
  sympy==1.13.3
248
  # via torch
249
+ tifffile==2025.1.10
250
  # via scikit-image
251
  timm==0.6.7
252
  # via controlnet-aux
 
270
  # via
271
  # huggingface-hub
272
  # transformers
273
+ transformers==4.48.0
274
  # via blip-diffusion (pyproject.toml)
275
  triton==3.0.0
276
  # via torch
uv.lock CHANGED
The diff for this file is too large to render. See raw diff