hysts HF staff commited on
Commit
728ca5b
·
1 Parent(s): d4cc1fa
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: green
5
  colorTo: yellow
6
  sdk: gradio
7
- sdk_version: 5.9.1
8
  app_file: app.py
9
  pinned: false
10
  license: mit
 
4
  colorFrom: green
5
  colorTo: yellow
6
  sdk: gradio
7
+ sdk_version: 5.12.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
pyproject.toml CHANGED
@@ -6,11 +6,11 @@ readme = "README.md"
6
  requires-python = ">=3.10"
7
  dependencies = [
8
  "accelerate>=1.2.1",
9
- "gradio>=5.9.1",
10
- "hf-transfer>=0.1.8",
11
- "spaces>=0.31.1",
12
  "torch==2.4.0",
13
- "transformers>=4.47.1",
14
  ]
15
 
16
  [tool.ruff]
 
6
  requires-python = ">=3.10"
7
  dependencies = [
8
  "accelerate>=1.2.1",
9
+ "gradio>=5.12.0",
10
+ "hf-transfer>=0.1.9",
11
+ "spaces>=0.32.0",
12
  "torch==2.4.0",
13
+ "transformers>=4.48.0",
14
  ]
15
 
16
  [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
@@ -39,17 +39,17 @@ fsspec==2024.12.0
39
  # gradio-client
40
  # huggingface-hub
41
  # torch
42
- gradio==5.9.1
43
  # via
44
  # zephyr-7b (pyproject.toml)
45
  # spaces
46
- gradio-client==1.5.2
47
  # via gradio
48
  h11==0.14.0
49
  # via
50
  # httpcore
51
  # uvicorn
52
- hf-transfer==0.1.8
53
  # via zephyr-7b (pyproject.toml)
54
  httpcore==1.0.7
55
  # via httpx
@@ -59,7 +59,7 @@ httpx==0.28.1
59
  # gradio-client
60
  # safehttpx
61
  # spaces
62
- huggingface-hub==0.27.0
63
  # via
64
  # accelerate
65
  # gradio
@@ -124,7 +124,7 @@ nvidia-nvjitlink-cu12==12.6.85
124
  # nvidia-cusparse-cu12
125
  nvidia-nvtx-cu12==12.1.105
126
  # via torch
127
- orjson==3.10.13
128
  # via gradio
129
  packaging==24.2
130
  # via
@@ -136,13 +136,13 @@ packaging==24.2
136
  # transformers
137
  pandas==2.2.3
138
  # via gradio
139
- pillow==11.0.0
140
  # via gradio
141
  psutil==5.9.8
142
  # via
143
  # accelerate
144
  # spaces
145
- pydantic==2.10.4
146
  # via
147
  # fastapi
148
  # gradio
@@ -151,7 +151,7 @@ pydantic-core==2.27.2
151
  # via pydantic
152
  pydub==0.25.1
153
  # via gradio
154
- pygments==2.18.0
155
  # via rich
156
  python-dateutil==2.9.0.post0
157
  # via pandas
@@ -174,11 +174,11 @@ requests==2.32.3
174
  # transformers
175
  rich==13.9.4
176
  # via typer
177
- ruff==0.8.4
178
  # via gradio
179
  safehttpx==0.1.6
180
  # via gradio
181
- safetensors==0.4.5
182
  # via
183
  # accelerate
184
  # transformers
@@ -190,7 +190,7 @@ six==1.17.0
190
  # via python-dateutil
191
  sniffio==1.3.1
192
  # via anyio
193
- spaces==0.31.1
194
  # via zephyr-7b (pyproject.toml)
195
  starlette==0.41.3
196
  # via
@@ -210,7 +210,7 @@ tqdm==4.67.1
210
  # via
211
  # huggingface-hub
212
  # transformers
213
- transformers==4.47.1
214
  # via zephyr-7b (pyproject.toml)
215
  triton==3.0.0
216
  # 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
 
39
  # gradio-client
40
  # huggingface-hub
41
  # torch
42
+ gradio==5.12.0
43
  # via
44
  # zephyr-7b (pyproject.toml)
45
  # spaces
46
+ gradio-client==1.5.4
47
  # via gradio
48
  h11==0.14.0
49
  # via
50
  # httpcore
51
  # uvicorn
52
+ hf-transfer==0.1.9
53
  # via zephyr-7b (pyproject.toml)
54
  httpcore==1.0.7
55
  # via httpx
 
59
  # gradio-client
60
  # safehttpx
61
  # spaces
62
+ huggingface-hub==0.27.1
63
  # via
64
  # accelerate
65
  # gradio
 
124
  # nvidia-cusparse-cu12
125
  nvidia-nvtx-cu12==12.1.105
126
  # via torch
127
+ orjson==3.10.14
128
  # via gradio
129
  packaging==24.2
130
  # via
 
136
  # transformers
137
  pandas==2.2.3
138
  # via gradio
139
+ pillow==11.1.0
140
  # via gradio
141
  psutil==5.9.8
142
  # via
143
  # accelerate
144
  # spaces
145
+ pydantic==2.10.5
146
  # via
147
  # fastapi
148
  # gradio
 
151
  # via pydantic
152
  pydub==0.25.1
153
  # via gradio
154
+ pygments==2.19.1
155
  # via rich
156
  python-dateutil==2.9.0.post0
157
  # via pandas
 
174
  # transformers
175
  rich==13.9.4
176
  # via typer
177
+ ruff==0.9.1
178
  # via gradio
179
  safehttpx==0.1.6
180
  # via gradio
181
+ safetensors==0.5.2
182
  # via
183
  # accelerate
184
  # transformers
 
190
  # via python-dateutil
191
  sniffio==1.3.1
192
  # via anyio
193
+ spaces==0.32.0
194
  # via zephyr-7b (pyproject.toml)
195
  starlette==0.41.3
196
  # via
 
210
  # via
211
  # huggingface-hub
212
  # transformers
213
+ transformers==4.48.0
214
  # via zephyr-7b (pyproject.toml)
215
  triton==3.0.0
216
  # via torch
uv.lock CHANGED
The diff for this file is too large to render. See raw diff