hysts HF staff commited on
Commit
f9e6d49
·
1 Parent(s): dd644f6
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 +13 -13
  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: gray
5
  colorTo: purple
6
  sdk: gradio
7
- sdk_version: 5.9.1
8
  app_file: app.py
9
  license: mit
10
  pinned: false
 
4
  colorFrom: gray
5
  colorTo: purple
6
  sdk: gradio
7
+ sdk_version: 5.12.0
8
  app_file: app.py
9
  license: mit
10
  pinned: false
pyproject.toml CHANGED
@@ -7,11 +7,11 @@ requires-python = ">=3.10"
7
  dependencies = [
8
  "accelerate>=1.2.1",
9
  "diffusers>=0.32.1",
10
- "gradio>=5.9.1",
11
- "hf-transfer>=0.1.8",
12
- "spaces>=0.31.1",
13
  "torch==2.4.0",
14
- "transformers>=4.47.1",
15
  ]
16
 
17
  [tool.ruff]
 
7
  dependencies = [
8
  "accelerate>=1.2.1",
9
  "diffusers>=0.32.1",
10
+ "gradio>=5.12.0",
11
+ "hf-transfer>=0.1.9",
12
+ "spaces>=0.32.0",
13
  "torch==2.4.0",
14
+ "transformers>=4.48.0",
15
  ]
16
 
17
  [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
@@ -42,17 +42,17 @@ fsspec==2024.12.0
42
  # gradio-client
43
  # huggingface-hub
44
  # torch
45
- gradio==5.9.1
46
  # via
47
  # sdxl (pyproject.toml)
48
  # spaces
49
- gradio-client==1.5.2
50
  # via gradio
51
  h11==0.14.0
52
  # via
53
  # httpcore
54
  # uvicorn
55
- hf-transfer==0.1.8
56
  # via sdxl (pyproject.toml)
57
  httpcore==1.0.7
58
  # via httpx
@@ -62,7 +62,7 @@ httpx==0.28.1
62
  # gradio-client
63
  # safehttpx
64
  # spaces
65
- huggingface-hub==0.27.0
66
  # via
67
  # accelerate
68
  # diffusers
@@ -131,7 +131,7 @@ nvidia-nvjitlink-cu12==12.6.85
131
  # nvidia-cusparse-cu12
132
  nvidia-nvtx-cu12==12.1.105
133
  # via torch
134
- orjson==3.10.13
135
  # via gradio
136
  packaging==24.2
137
  # via
@@ -143,7 +143,7 @@ packaging==24.2
143
  # transformers
144
  pandas==2.2.3
145
  # via gradio
146
- pillow==11.0.0
147
  # via
148
  # diffusers
149
  # gradio
@@ -151,7 +151,7 @@ psutil==5.9.8
151
  # via
152
  # accelerate
153
  # spaces
154
- pydantic==2.10.4
155
  # via
156
  # fastapi
157
  # gradio
@@ -160,7 +160,7 @@ pydantic-core==2.27.2
160
  # via pydantic
161
  pydub==0.25.1
162
  # via gradio
163
- pygments==2.18.0
164
  # via rich
165
  python-dateutil==2.9.0.post0
166
  # via pandas
@@ -186,11 +186,11 @@ requests==2.32.3
186
  # transformers
187
  rich==13.9.4
188
  # via typer
189
- ruff==0.8.4
190
  # via gradio
191
  safehttpx==0.1.6
192
  # via gradio
193
- safetensors==0.4.5
194
  # via
195
  # accelerate
196
  # diffusers
@@ -203,7 +203,7 @@ six==1.17.0
203
  # via python-dateutil
204
  sniffio==1.3.1
205
  # via anyio
206
- spaces==0.31.1
207
  # via sdxl (pyproject.toml)
208
  starlette==0.41.3
209
  # via
@@ -223,7 +223,7 @@ tqdm==4.67.1
223
  # via
224
  # huggingface-hub
225
  # transformers
226
- transformers==4.47.1
227
  # via sdxl (pyproject.toml)
228
  triton==3.0.0
229
  # 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
 
42
  # gradio-client
43
  # huggingface-hub
44
  # torch
45
+ gradio==5.12.0
46
  # via
47
  # sdxl (pyproject.toml)
48
  # spaces
49
+ gradio-client==1.5.4
50
  # via gradio
51
  h11==0.14.0
52
  # via
53
  # httpcore
54
  # uvicorn
55
+ hf-transfer==0.1.9
56
  # via sdxl (pyproject.toml)
57
  httpcore==1.0.7
58
  # via httpx
 
62
  # gradio-client
63
  # safehttpx
64
  # spaces
65
+ huggingface-hub==0.27.1
66
  # via
67
  # accelerate
68
  # diffusers
 
131
  # nvidia-cusparse-cu12
132
  nvidia-nvtx-cu12==12.1.105
133
  # via torch
134
+ orjson==3.10.14
135
  # via gradio
136
  packaging==24.2
137
  # via
 
143
  # transformers
144
  pandas==2.2.3
145
  # via gradio
146
+ pillow==11.1.0
147
  # via
148
  # diffusers
149
  # gradio
 
151
  # via
152
  # accelerate
153
  # spaces
154
+ pydantic==2.10.5
155
  # via
156
  # fastapi
157
  # gradio
 
160
  # via pydantic
161
  pydub==0.25.1
162
  # via gradio
163
+ pygments==2.19.1
164
  # via rich
165
  python-dateutil==2.9.0.post0
166
  # via pandas
 
186
  # transformers
187
  rich==13.9.4
188
  # via typer
189
+ ruff==0.9.1
190
  # via gradio
191
  safehttpx==0.1.6
192
  # via gradio
193
+ safetensors==0.5.2
194
  # via
195
  # accelerate
196
  # diffusers
 
203
  # via python-dateutil
204
  sniffio==1.3.1
205
  # via anyio
206
+ spaces==0.32.0
207
  # via sdxl (pyproject.toml)
208
  starlette==0.41.3
209
  # via
 
223
  # via
224
  # huggingface-hub
225
  # transformers
226
+ transformers==4.48.0
227
  # via sdxl (pyproject.toml)
228
  triton==3.0.0
229
  # via torch
uv.lock CHANGED
The diff for this file is too large to render. See raw diff