hysts HF staff commited on
Commit
deb0066
·
1 Parent(s): 6490ee4
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: red
5
  colorTo: purple
6
  sdk: gradio
7
- sdk_version: 5.9.1
8
  app_file: app.py
9
  pinned: false
10
  license: mit
 
4
  colorFrom: red
5
  colorTo: purple
6
  sdk: gradio
7
+ sdk_version: 5.12.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
pyproject.toml CHANGED
@@ -5,12 +5,12 @@ description = ""
5
  readme = "README.md"
6
  requires-python = ">=3.10"
7
  dependencies = [
8
- "gradio>=5.9.1",
9
- "hf-transfer>=0.1.8",
10
- "spaces>=0.31.1",
11
  "torch==2.4.0",
12
  "torchvision>=0.19.0",
13
- "transformers>=4.47.1",
14
  ]
15
 
16
  [tool.ruff]
 
5
  readme = "README.md"
6
  requires-python = ">=3.10"
7
  dependencies = [
8
+ "gradio>=5.12.0",
9
+ "hf-transfer>=0.1.9",
10
+ "spaces>=0.32.0",
11
  "torch==2.4.0",
12
  "torchvision>=0.19.0",
13
+ "transformers>=4.48.0",
14
  ]
15
 
16
  [tool.ruff]
requirements.txt CHANGED
@@ -4,7 +4,7 @@ aiofiles==23.2.1
4
  # via gradio
5
  annotated-types==0.7.0
6
  # via pydantic
7
- anyio==4.7.0
8
  # via
9
  # gradio
10
  # httpx
@@ -37,17 +37,17 @@ fsspec==2024.12.0
37
  # gradio-client
38
  # huggingface-hub
39
  # torch
40
- gradio==5.9.1
41
  # via
42
  # image-captioning-with-blip (pyproject.toml)
43
  # spaces
44
- gradio-client==1.5.2
45
  # via gradio
46
  h11==0.14.0
47
  # via
48
  # httpcore
49
  # uvicorn
50
- hf-transfer==0.1.8
51
  # via image-captioning-with-blip (pyproject.toml)
52
  httpcore==1.0.7
53
  # via httpx
@@ -57,7 +57,7 @@ httpx==0.28.1
57
  # gradio-client
58
  # safehttpx
59
  # spaces
60
- huggingface-hub==0.27.0
61
  # via
62
  # gradio
63
  # gradio-client
@@ -121,7 +121,7 @@ nvidia-nvjitlink-cu12==12.6.85
121
  # nvidia-cusparse-cu12
122
  nvidia-nvtx-cu12==12.1.105
123
  # via torch
124
- orjson==3.10.13
125
  # via gradio
126
  packaging==24.2
127
  # via
@@ -132,13 +132,13 @@ packaging==24.2
132
  # transformers
133
  pandas==2.2.3
134
  # via gradio
135
- pillow==11.0.0
136
  # via
137
  # gradio
138
  # torchvision
139
  psutil==5.9.8
140
  # via spaces
141
- pydantic==2.10.4
142
  # via
143
  # fastapi
144
  # gradio
@@ -147,7 +147,7 @@ pydantic-core==2.27.2
147
  # via pydantic
148
  pydub==0.25.1
149
  # via gradio
150
- pygments==2.18.0
151
  # via rich
152
  python-dateutil==2.9.0.post0
153
  # via pandas
@@ -169,11 +169,11 @@ requests==2.32.3
169
  # transformers
170
  rich==13.9.4
171
  # via typer
172
- ruff==0.8.4
173
  # via gradio
174
  safehttpx==0.1.6
175
  # via gradio
176
- safetensors==0.4.5
177
  # via transformers
178
  semantic-version==2.10.0
179
  # via gradio
@@ -183,7 +183,7 @@ six==1.17.0
183
  # via python-dateutil
184
  sniffio==1.3.1
185
  # via anyio
186
- spaces==0.31.1
187
  # via image-captioning-with-blip (pyproject.toml)
188
  starlette==0.41.3
189
  # via
@@ -205,7 +205,7 @@ tqdm==4.67.1
205
  # via
206
  # huggingface-hub
207
  # transformers
208
- transformers==4.47.1
209
  # via image-captioning-with-blip (pyproject.toml)
210
  triton==3.0.0
211
  # via torch
 
4
  # via gradio
5
  annotated-types==0.7.0
6
  # via pydantic
7
+ anyio==4.8.0
8
  # via
9
  # gradio
10
  # httpx
 
37
  # gradio-client
38
  # huggingface-hub
39
  # torch
40
+ gradio==5.12.0
41
  # via
42
  # image-captioning-with-blip (pyproject.toml)
43
  # spaces
44
+ gradio-client==1.5.4
45
  # via gradio
46
  h11==0.14.0
47
  # via
48
  # httpcore
49
  # uvicorn
50
+ hf-transfer==0.1.9
51
  # via image-captioning-with-blip (pyproject.toml)
52
  httpcore==1.0.7
53
  # via httpx
 
57
  # gradio-client
58
  # safehttpx
59
  # spaces
60
+ huggingface-hub==0.27.1
61
  # via
62
  # gradio
63
  # gradio-client
 
121
  # nvidia-cusparse-cu12
122
  nvidia-nvtx-cu12==12.1.105
123
  # via torch
124
+ orjson==3.10.14
125
  # via gradio
126
  packaging==24.2
127
  # via
 
132
  # transformers
133
  pandas==2.2.3
134
  # via gradio
135
+ pillow==11.1.0
136
  # via
137
  # gradio
138
  # torchvision
139
  psutil==5.9.8
140
  # via spaces
141
+ pydantic==2.10.5
142
  # via
143
  # fastapi
144
  # gradio
 
147
  # via pydantic
148
  pydub==0.25.1
149
  # via gradio
150
+ pygments==2.19.1
151
  # via rich
152
  python-dateutil==2.9.0.post0
153
  # via pandas
 
169
  # transformers
170
  rich==13.9.4
171
  # via typer
172
+ ruff==0.9.1
173
  # via gradio
174
  safehttpx==0.1.6
175
  # via gradio
176
+ safetensors==0.5.2
177
  # via transformers
178
  semantic-version==2.10.0
179
  # via gradio
 
183
  # via python-dateutil
184
  sniffio==1.3.1
185
  # via anyio
186
+ spaces==0.32.0
187
  # via image-captioning-with-blip (pyproject.toml)
188
  starlette==0.41.3
189
  # via
 
205
  # via
206
  # huggingface-hub
207
  # transformers
208
+ transformers==4.48.0
209
  # via image-captioning-with-blip (pyproject.toml)
210
  triton==3.0.0
211
  # via torch
uv.lock CHANGED
The diff for this file is too large to render. See raw diff