Spaces:
Running
on
Zero
Running
on
Zero
Update
Browse files- .python-version +1 -0
- README.md +1 -1
- pyproject.toml +16 -0
- requirements.txt +269 -9
- uv.lock +0 -0
.python-version
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
3.10
|
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🌖
|
|
4 |
colorFrom: blue
|
5 |
colorTo: pink
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 4.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: bsd-3-clause
|
|
|
4 |
colorFrom: blue
|
5 |
colorTo: pink
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 4.44.1
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: bsd-3-clause
|
pyproject.toml
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[project]
|
2 |
+
name = "blip2"
|
3 |
+
version = "0.1.0"
|
4 |
+
description = ""
|
5 |
+
readme = "README.md"
|
6 |
+
requires-python = ">=3.10"
|
7 |
+
dependencies = [
|
8 |
+
"accelerate>=0.34.2",
|
9 |
+
"bitsandbytes>=0.44.1",
|
10 |
+
"gradio>=4.44.1",
|
11 |
+
"hf-transfer>=0.1.8",
|
12 |
+
"spaces>=0.30.3",
|
13 |
+
"torch==2.4.0",
|
14 |
+
"torchvision==0.19.0",
|
15 |
+
"transformers>=4.45.1",
|
16 |
+
]
|
requirements.txt
CHANGED
@@ -1,9 +1,269 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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.1
|
6 |
+
# via gradio
|
7 |
+
annotated-types==0.7.0
|
8 |
+
# via pydantic
|
9 |
+
anyio==4.6.0
|
10 |
+
# via
|
11 |
+
# gradio
|
12 |
+
# httpx
|
13 |
+
# starlette
|
14 |
+
bitsandbytes==0.44.1
|
15 |
+
# via blip2 (pyproject.toml)
|
16 |
+
certifi==2024.8.30
|
17 |
+
# via
|
18 |
+
# httpcore
|
19 |
+
# httpx
|
20 |
+
# requests
|
21 |
+
charset-normalizer==3.3.2
|
22 |
+
# via requests
|
23 |
+
click==8.1.7
|
24 |
+
# via
|
25 |
+
# typer
|
26 |
+
# uvicorn
|
27 |
+
contourpy==1.3.0
|
28 |
+
# via matplotlib
|
29 |
+
cycler==0.12.1
|
30 |
+
# via matplotlib
|
31 |
+
exceptiongroup==1.2.2
|
32 |
+
# via anyio
|
33 |
+
fastapi==0.115.0
|
34 |
+
# via gradio
|
35 |
+
ffmpy==0.4.0
|
36 |
+
# via gradio
|
37 |
+
filelock==3.16.1
|
38 |
+
# via
|
39 |
+
# huggingface-hub
|
40 |
+
# torch
|
41 |
+
# transformers
|
42 |
+
# triton
|
43 |
+
fonttools==4.54.1
|
44 |
+
# via matplotlib
|
45 |
+
fsspec==2024.9.0
|
46 |
+
# via
|
47 |
+
# gradio-client
|
48 |
+
# huggingface-hub
|
49 |
+
# torch
|
50 |
+
gradio==4.44.1
|
51 |
+
# via
|
52 |
+
# blip2 (pyproject.toml)
|
53 |
+
# spaces
|
54 |
+
gradio-client==1.3.0
|
55 |
+
# via gradio
|
56 |
+
h11==0.14.0
|
57 |
+
# via
|
58 |
+
# httpcore
|
59 |
+
# uvicorn
|
60 |
+
hf-transfer==0.1.8
|
61 |
+
# via blip2 (pyproject.toml)
|
62 |
+
httpcore==1.0.6
|
63 |
+
# via httpx
|
64 |
+
httpx==0.27.2
|
65 |
+
# via
|
66 |
+
# gradio
|
67 |
+
# gradio-client
|
68 |
+
# spaces
|
69 |
+
huggingface-hub==0.25.1
|
70 |
+
# via
|
71 |
+
# accelerate
|
72 |
+
# gradio
|
73 |
+
# gradio-client
|
74 |
+
# tokenizers
|
75 |
+
# transformers
|
76 |
+
idna==3.10
|
77 |
+
# via
|
78 |
+
# anyio
|
79 |
+
# httpx
|
80 |
+
# requests
|
81 |
+
importlib-resources==6.4.5
|
82 |
+
# via gradio
|
83 |
+
jinja2==3.1.4
|
84 |
+
# via
|
85 |
+
# gradio
|
86 |
+
# torch
|
87 |
+
kiwisolver==1.4.7
|
88 |
+
# via matplotlib
|
89 |
+
markdown-it-py==3.0.0
|
90 |
+
# via rich
|
91 |
+
markupsafe==2.1.5
|
92 |
+
# via
|
93 |
+
# gradio
|
94 |
+
# jinja2
|
95 |
+
matplotlib==3.9.2
|
96 |
+
# via gradio
|
97 |
+
mdurl==0.1.2
|
98 |
+
# via markdown-it-py
|
99 |
+
mpmath==1.3.0
|
100 |
+
# via sympy
|
101 |
+
networkx==3.3
|
102 |
+
# via torch
|
103 |
+
numpy==2.1.1
|
104 |
+
# via
|
105 |
+
# accelerate
|
106 |
+
# bitsandbytes
|
107 |
+
# contourpy
|
108 |
+
# gradio
|
109 |
+
# matplotlib
|
110 |
+
# pandas
|
111 |
+
# torchvision
|
112 |
+
# transformers
|
113 |
+
nvidia-cublas-cu12==12.1.3.1
|
114 |
+
# via
|
115 |
+
# nvidia-cudnn-cu12
|
116 |
+
# nvidia-cusolver-cu12
|
117 |
+
# torch
|
118 |
+
nvidia-cuda-cupti-cu12==12.1.105
|
119 |
+
# via torch
|
120 |
+
nvidia-cuda-nvrtc-cu12==12.1.105
|
121 |
+
# via torch
|
122 |
+
nvidia-cuda-runtime-cu12==12.1.105
|
123 |
+
# via torch
|
124 |
+
nvidia-cudnn-cu12==9.1.0.70
|
125 |
+
# via torch
|
126 |
+
nvidia-cufft-cu12==11.0.2.54
|
127 |
+
# via torch
|
128 |
+
nvidia-curand-cu12==10.3.2.106
|
129 |
+
# via torch
|
130 |
+
nvidia-cusolver-cu12==11.4.5.107
|
131 |
+
# via torch
|
132 |
+
nvidia-cusparse-cu12==12.1.0.106
|
133 |
+
# via
|
134 |
+
# nvidia-cusolver-cu12
|
135 |
+
# torch
|
136 |
+
nvidia-nccl-cu12==2.20.5
|
137 |
+
# via torch
|
138 |
+
nvidia-nvjitlink-cu12==12.6.77
|
139 |
+
# via
|
140 |
+
# nvidia-cusolver-cu12
|
141 |
+
# nvidia-cusparse-cu12
|
142 |
+
nvidia-nvtx-cu12==12.1.105
|
143 |
+
# via torch
|
144 |
+
orjson==3.10.7
|
145 |
+
# via gradio
|
146 |
+
packaging==24.1
|
147 |
+
# via
|
148 |
+
# accelerate
|
149 |
+
# gradio
|
150 |
+
# gradio-client
|
151 |
+
# huggingface-hub
|
152 |
+
# matplotlib
|
153 |
+
# spaces
|
154 |
+
# transformers
|
155 |
+
pandas==2.2.3
|
156 |
+
# via gradio
|
157 |
+
pillow==10.3.0
|
158 |
+
# via
|
159 |
+
# gradio
|
160 |
+
# matplotlib
|
161 |
+
# torchvision
|
162 |
+
psutil==5.9.8
|
163 |
+
# via
|
164 |
+
# accelerate
|
165 |
+
# spaces
|
166 |
+
pydantic==2.9.2
|
167 |
+
# via
|
168 |
+
# fastapi
|
169 |
+
# gradio
|
170 |
+
# spaces
|
171 |
+
pydantic-core==2.23.4
|
172 |
+
# via pydantic
|
173 |
+
pydub==0.25.1
|
174 |
+
# via gradio
|
175 |
+
pygments==2.18.0
|
176 |
+
# via rich
|
177 |
+
pyparsing==3.1.4
|
178 |
+
# via matplotlib
|
179 |
+
python-dateutil==2.9.0.post0
|
180 |
+
# via
|
181 |
+
# matplotlib
|
182 |
+
# pandas
|
183 |
+
python-multipart==0.0.12
|
184 |
+
# via gradio
|
185 |
+
pytz==2024.2
|
186 |
+
# via pandas
|
187 |
+
pyyaml==6.0.2
|
188 |
+
# via
|
189 |
+
# accelerate
|
190 |
+
# gradio
|
191 |
+
# huggingface-hub
|
192 |
+
# transformers
|
193 |
+
regex==2024.9.11
|
194 |
+
# via transformers
|
195 |
+
requests==2.32.3
|
196 |
+
# via
|
197 |
+
# huggingface-hub
|
198 |
+
# spaces
|
199 |
+
# transformers
|
200 |
+
rich==13.9.2
|
201 |
+
# via typer
|
202 |
+
ruff==0.6.9
|
203 |
+
# via gradio
|
204 |
+
safetensors==0.4.5
|
205 |
+
# via
|
206 |
+
# accelerate
|
207 |
+
# transformers
|
208 |
+
semantic-version==2.10.0
|
209 |
+
# via gradio
|
210 |
+
shellingham==1.5.4
|
211 |
+
# via typer
|
212 |
+
six==1.16.0
|
213 |
+
# via python-dateutil
|
214 |
+
sniffio==1.3.1
|
215 |
+
# via
|
216 |
+
# anyio
|
217 |
+
# httpx
|
218 |
+
spaces==0.30.3
|
219 |
+
# via blip2 (pyproject.toml)
|
220 |
+
starlette==0.38.6
|
221 |
+
# via fastapi
|
222 |
+
sympy==1.13.3
|
223 |
+
# via torch
|
224 |
+
tokenizers==0.20.0
|
225 |
+
# via transformers
|
226 |
+
tomlkit==0.12.0
|
227 |
+
# via gradio
|
228 |
+
torch==2.4.0
|
229 |
+
# via
|
230 |
+
# blip2 (pyproject.toml)
|
231 |
+
# accelerate
|
232 |
+
# bitsandbytes
|
233 |
+
# torchvision
|
234 |
+
torchvision==0.19.0
|
235 |
+
# via blip2 (pyproject.toml)
|
236 |
+
tqdm==4.66.5
|
237 |
+
# via
|
238 |
+
# huggingface-hub
|
239 |
+
# transformers
|
240 |
+
transformers==4.45.1
|
241 |
+
# via blip2 (pyproject.toml)
|
242 |
+
triton==3.0.0
|
243 |
+
# via torch
|
244 |
+
typer==0.12.5
|
245 |
+
# via gradio
|
246 |
+
typing-extensions==4.12.2
|
247 |
+
# via
|
248 |
+
# anyio
|
249 |
+
# fastapi
|
250 |
+
# gradio
|
251 |
+
# gradio-client
|
252 |
+
# huggingface-hub
|
253 |
+
# pydantic
|
254 |
+
# pydantic-core
|
255 |
+
# rich
|
256 |
+
# spaces
|
257 |
+
# torch
|
258 |
+
# typer
|
259 |
+
# uvicorn
|
260 |
+
tzdata==2024.2
|
261 |
+
# via pandas
|
262 |
+
urllib3==2.2.3
|
263 |
+
# via
|
264 |
+
# gradio
|
265 |
+
# requests
|
266 |
+
uvicorn==0.31.0
|
267 |
+
# via gradio
|
268 |
+
websockets==12.0
|
269 |
+
# via gradio-client
|
uv.lock
ADDED
The diff for this file is too large to render.
See raw diff
|
|