hysts HF Staff commited on
Commit
132f71a
·
1 Parent(s): c0c1f2f

Update deps and tidy repo

Browse files

- Upgrade gradio to 6.13.0 and run uv lock --upgrade
- Drop extra blank line after function signature
- Drop *.ipynb ruff per-file-ignores
- Remove .vscode/ from version control

Files changed (7) hide show
  1. .vscode/extensions.json +0 -8
  2. .vscode/settings.json +0 -17
  3. README.md +1 -1
  4. app.py +0 -1
  5. pyproject.toml +1 -4
  6. requirements.txt +28 -28
  7. uv.lock +0 -0
.vscode/extensions.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "recommendations": [
3
- "ms-python.python",
4
- "charliermarsh.ruff",
5
- "streetsidesoftware.code-spell-checker",
6
- "tamasfe.even-better-toml"
7
- ]
8
- }
 
 
 
 
 
 
 
 
 
.vscode/settings.json DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "editor.formatOnSave": true,
3
- "files.insertFinalNewline": false,
4
- "[python]": {
5
- "editor.defaultFormatter": "charliermarsh.ruff",
6
- "editor.formatOnType": true,
7
- "editor.codeActionsOnSave": {
8
- "source.fixAll.ruff": "explicit",
9
- "source.organizeImports": "explicit"
10
- }
11
- },
12
- "[jupyter]": {
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: indigo
5
  colorTo: pink
6
  sdk: gradio
7
- sdk_version: 6.12.0
8
  python_version: "3.12.12"
9
  app_file: app.py
10
  pinned: false
 
4
  colorFrom: indigo
5
  colorTo: pink
6
  sdk: gradio
7
+ sdk_version: 6.13.0
8
  python_version: "3.12.12"
9
  app_file: app.py
10
  pinned: false
app.py CHANGED
@@ -109,7 +109,6 @@ def generate(
109
  top_k: int = 50,
110
  repetition_penalty: float = 1.2,
111
  ) -> Iterator[str]:
112
-
113
  conversation = []
114
  for msg in chat_history:
115
  content = msg["content"]
 
109
  top_k: int = 50,
110
  repetition_penalty: float = 1.2,
111
  ) -> Iterator[str]:
 
112
  conversation = []
113
  for msg in chat_history:
114
  content = msg["content"]
pyproject.toml CHANGED
@@ -6,7 +6,7 @@ readme = "README.md"
6
  requires-python = ">=3.12"
7
  dependencies = [
8
  "accelerate>=1.13.0",
9
- "gradio[mcp,oauth]>=6.12.0",
10
  "spaces>=0.48.3",
11
  "torch==2.9.1",
12
  "transformers>=5.3.0",
@@ -47,9 +47,6 @@ unfixable = [
47
  [tool.ruff.lint.pydocstyle]
48
  convention = "google"
49
 
50
- [tool.ruff.lint.per-file-ignores]
51
- "*.ipynb" = ["T201", "T203"]
52
-
53
  [tool.ruff.format]
54
  docstring-code-format = true
55
 
 
6
  requires-python = ">=3.12"
7
  dependencies = [
8
  "accelerate>=1.13.0",
9
+ "gradio[mcp,oauth]>=6.13.0",
10
  "spaces>=0.48.3",
11
  "torch==2.9.1",
12
  "transformers>=5.3.0",
 
47
  [tool.ruff.lint.pydocstyle]
48
  convention = "google"
49
 
 
 
 
50
  [tool.ruff.format]
51
  docstring-code-format = true
52
 
requirements.txt CHANGED
@@ -25,16 +25,16 @@ authlib==1.7.0
25
  # via gradio
26
  brotli==1.2.0
27
  # via gradio
28
- certifi==2026.2.25
29
  # via
30
  # httpcore
31
  # httpx
32
  # requests
33
  cffi==2.0.0 ; platform_python_implementation != 'PyPy'
34
  # via cryptography
35
- charset-normalizer==3.4.6
36
  # via requests
37
- click==8.3.1
38
  # via
39
  # typer
40
  # uvicorn
@@ -47,9 +47,9 @@ cryptography==46.0.7
47
  # authlib
48
  # joserfc
49
  # pyjwt
50
- fastapi==0.135.2
51
  # via gradio
52
- filelock==3.25.2
53
  # via
54
  # huggingface-hub
55
  # torch
@@ -58,11 +58,11 @@ fsspec==2026.2.0
58
  # gradio-client
59
  # huggingface-hub
60
  # torch
61
- gradio==6.12.0
62
  # via
63
  # gemma-2-9b-it
64
  # spaces
65
- gradio-client==2.4.1
66
  # via
67
  # gradio
68
  # hf-gradio
@@ -72,9 +72,9 @@ h11==0.16.0
72
  # via
73
  # httpcore
74
  # uvicorn
75
- hf-gradio==0.3.0
76
  # via gradio
77
- hf-xet==1.4.2 ; platform_machine == 'AMD64' or platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'arm64' or platform_machine == 'x86_64'
78
  # via huggingface-hub
79
  httpcore==1.0.9
80
  # via httpx
@@ -88,14 +88,14 @@ httpx==0.28.1
88
  # spaces
89
  httpx-sse==0.4.3
90
  # via mcp
91
- huggingface-hub==1.8.0
92
  # via
93
  # accelerate
94
  # gradio
95
  # gradio-client
96
  # tokenizers
97
  # transformers
98
- idna==3.11
99
  # via
100
  # anyio
101
  # httpx
@@ -126,7 +126,7 @@ mpmath==1.3.0
126
  # via sympy
127
  networkx==3.6.1
128
  # via torch
129
- numpy==2.4.3
130
  # via
131
  # accelerate
132
  # gradio
@@ -171,9 +171,9 @@ nvidia-nvshmem-cu12==3.3.20 ; platform_machine == 'x86_64' and sys_platform == '
171
  # via torch
172
  nvidia-nvtx-cu12==12.8.90 ; platform_machine == 'x86_64' and sys_platform == 'linux'
173
  # via torch
174
- orjson==3.11.7
175
  # via gradio
176
- packaging==26.0
177
  # via
178
  # accelerate
179
  # gradio
@@ -181,9 +181,9 @@ packaging==26.0
181
  # huggingface-hub
182
  # spaces
183
  # transformers
184
- pandas==3.0.1
185
  # via gradio
186
- pillow==12.1.1
187
  # via gradio
188
  psutil==5.9.8
189
  # via
@@ -200,11 +200,11 @@ pydantic==2.12.5
200
  # spaces
201
  pydantic-core==2.41.5
202
  # via pydantic
203
- pydantic-settings==2.13.1
204
  # via mcp
205
  pydub==0.25.1
206
  # via gradio
207
- pygments==2.19.2
208
  # via rich
209
  pyjwt==2.12.1
210
  # via mcp
@@ -212,7 +212,7 @@ python-dateutil==2.9.0.post0
212
  # via pandas
213
  python-dotenv==1.2.2
214
  # via pydantic-settings
215
- python-multipart==0.0.22
216
  # via
217
  # gradio
218
  # mcp
@@ -230,11 +230,11 @@ referencing==0.37.0
230
  # via
231
  # jsonschema
232
  # jsonschema-specifications
233
- regex==2026.2.28
234
  # via transformers
235
- requests==2.33.0
236
  # via spaces
237
- rich==14.3.3
238
  # via typer
239
  rpds-py==0.30.0
240
  # via
@@ -256,7 +256,7 @@ six==1.17.0
256
  # via python-dateutil
257
  sse-starlette==3.3.4
258
  # via mcp
259
- starlette==0.52.1
260
  # via
261
  # fastapi
262
  # gradio
@@ -266,7 +266,7 @@ sympy==1.14.0
266
  # via torch
267
  tokenizers==0.22.2
268
  # via transformers
269
- tomlkit==0.13.3
270
  # via gradio
271
  torch==2.9.1
272
  # via
@@ -276,11 +276,11 @@ tqdm==4.67.3
276
  # via
277
  # huggingface-hub
278
  # transformers
279
- transformers==5.4.0
280
  # via gemma-2-9b-it
281
  triton==3.5.1 ; platform_machine == 'x86_64' and sys_platform == 'linux'
282
  # via torch
283
- typer==0.24.1
284
  # via
285
  # gradio
286
  # hf-gradio
@@ -307,11 +307,11 @@ typing-inspection==0.4.2
307
  # mcp
308
  # pydantic
309
  # pydantic-settings
310
- tzdata==2025.3 ; sys_platform == 'emscripten' or sys_platform == 'win32'
311
  # via pandas
312
  urllib3==2.6.3
313
  # via requests
314
- uvicorn==0.42.0
315
  # via
316
  # gradio
317
  # mcp
 
25
  # via gradio
26
  brotli==1.2.0
27
  # via gradio
28
+ certifi==2026.4.22
29
  # via
30
  # httpcore
31
  # httpx
32
  # requests
33
  cffi==2.0.0 ; platform_python_implementation != 'PyPy'
34
  # via cryptography
35
+ charset-normalizer==3.4.7
36
  # via requests
37
+ click==8.3.3
38
  # via
39
  # typer
40
  # uvicorn
 
47
  # authlib
48
  # joserfc
49
  # pyjwt
50
+ fastapi==0.136.0
51
  # via gradio
52
+ filelock==3.29.0
53
  # via
54
  # huggingface-hub
55
  # torch
 
58
  # gradio-client
59
  # huggingface-hub
60
  # torch
61
+ gradio==6.13.0
62
  # via
63
  # gemma-2-9b-it
64
  # spaces
65
+ gradio-client==2.5.0
66
  # via
67
  # gradio
68
  # hf-gradio
 
72
  # via
73
  # httpcore
74
  # uvicorn
75
+ hf-gradio==0.4.1
76
  # via gradio
77
+ hf-xet==1.4.3 ; platform_machine == 'AMD64' or platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'arm64' or platform_machine == 'x86_64'
78
  # via huggingface-hub
79
  httpcore==1.0.9
80
  # via httpx
 
88
  # spaces
89
  httpx-sse==0.4.3
90
  # via mcp
91
+ huggingface-hub==1.11.0
92
  # via
93
  # accelerate
94
  # gradio
95
  # gradio-client
96
  # tokenizers
97
  # transformers
98
+ idna==3.13
99
  # via
100
  # anyio
101
  # httpx
 
126
  # via sympy
127
  networkx==3.6.1
128
  # via torch
129
+ numpy==2.4.4
130
  # via
131
  # accelerate
132
  # gradio
 
171
  # via torch
172
  nvidia-nvtx-cu12==12.8.90 ; platform_machine == 'x86_64' and sys_platform == 'linux'
173
  # via torch
174
+ orjson==3.11.8
175
  # via gradio
176
+ packaging==26.1
177
  # via
178
  # accelerate
179
  # gradio
 
181
  # huggingface-hub
182
  # spaces
183
  # transformers
184
+ pandas==3.0.2
185
  # via gradio
186
+ pillow==12.2.0
187
  # via gradio
188
  psutil==5.9.8
189
  # via
 
200
  # spaces
201
  pydantic-core==2.41.5
202
  # via pydantic
203
+ pydantic-settings==2.14.0
204
  # via mcp
205
  pydub==0.25.1
206
  # via gradio
207
+ pygments==2.20.0
208
  # via rich
209
  pyjwt==2.12.1
210
  # via mcp
 
212
  # via pandas
213
  python-dotenv==1.2.2
214
  # via pydantic-settings
215
+ python-multipart==0.0.26
216
  # via
217
  # gradio
218
  # mcp
 
230
  # via
231
  # jsonschema
232
  # jsonschema-specifications
233
+ regex==2026.4.4
234
  # via transformers
235
+ requests==2.33.1
236
  # via spaces
237
+ rich==15.0.0
238
  # via typer
239
  rpds-py==0.30.0
240
  # via
 
256
  # via python-dateutil
257
  sse-starlette==3.3.4
258
  # via mcp
259
+ starlette==1.0.0
260
  # via
261
  # fastapi
262
  # gradio
 
266
  # via torch
267
  tokenizers==0.22.2
268
  # via transformers
269
+ tomlkit==0.14.0
270
  # via gradio
271
  torch==2.9.1
272
  # via
 
276
  # via
277
  # huggingface-hub
278
  # transformers
279
+ transformers==5.6.1
280
  # via gemma-2-9b-it
281
  triton==3.5.1 ; platform_machine == 'x86_64' and sys_platform == 'linux'
282
  # via torch
283
+ typer==0.24.2
284
  # via
285
  # gradio
286
  # hf-gradio
 
307
  # mcp
308
  # pydantic
309
  # pydantic-settings
310
+ tzdata==2026.1 ; sys_platform == 'emscripten' or sys_platform == 'win32'
311
  # via pandas
312
  urllib3==2.6.3
313
  # via requests
314
+ uvicorn==0.46.0
315
  # via
316
  # gradio
317
  # mcp
uv.lock CHANGED
The diff for this file is too large to render. See raw diff