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