Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -159,17 +159,27 @@ def randomize_seed_fn(generation_seed: int, randomize_seed: bool) -> int:
|
|
159 |
return generation_seed
|
160 |
#endregion
|
161 |
|
162 |
-
# CSS
|
163 |
css = """
|
164 |
-
body {
|
|
|
|
|
|
|
165 |
.gradio-container {
|
166 |
-
background:
|
167 |
-
border-radius:
|
168 |
-
padding:
|
169 |
-
box-shadow: 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
}
|
171 |
-
.gradio-container h1 { color: #333333; }
|
172 |
-
.fillable { width: 95% !important; max-width: unset !important; }
|
173 |
#examples_container {
|
174 |
margin: auto;
|
175 |
width: 90%;
|
@@ -177,6 +187,35 @@ body { background-color: #f0f2f5; }
|
|
177 |
#examples_row {
|
178 |
justify-content: center;
|
179 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
"""
|
181 |
|
182 |
title = """
|
@@ -302,7 +341,6 @@ with gr.Blocks(css=css, title="SDXL Tiling Pipeline") as app:
|
|
302 |
1280
|
303 |
]
|
304 |
],
|
305 |
-
# ์์ ํด๋ฆญ ์ ๊ฐ ์
๋ ฅ์ฐฝ์ ๊ฐ์ด ์ฑ์์ง๋๋ก "inputs" ์ธ์๋ฅผ ์ถ๊ฐํฉ๋๋ค.
|
306 |
inputs=[left_prompt, center_prompt, right_prompt, negative_prompt,
|
307 |
left_gs, center_gs, right_gs, overlap, steps, generation_seed,
|
308 |
scheduler, tile_height, tile_width, height, width, max_tile_size],
|
|
|
159 |
return generation_seed
|
160 |
#endregion
|
161 |
|
162 |
+
# CSS ๊ฐํ: ๊ทธ๋ผ๋ฐ์ด์
๋ฐฐ๊ฒฝ, ์
์ฒด์ ๊ทธ๋ฆผ์, ๋ถ๋๋ฌ์ด ์ ํ ํจ๊ณผ ๋ฑ์ผ๋ก UI๋ฅผ ๋น์ฃผ์ผํ๊ฒ ๊ฐ์
|
163 |
css = """
|
164 |
+
body {
|
165 |
+
background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
|
166 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
167 |
+
}
|
168 |
.gradio-container {
|
169 |
+
background: rgba(255, 255, 255, 0.95);
|
170 |
+
border-radius: 20px;
|
171 |
+
padding: 30px;
|
172 |
+
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
|
173 |
+
border: 1px solid rgba(255, 255, 255, 0.3);
|
174 |
+
}
|
175 |
+
.gradio-container h1 {
|
176 |
+
color: #333333;
|
177 |
+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
|
178 |
+
}
|
179 |
+
.fillable {
|
180 |
+
width: 95% !important;
|
181 |
+
max-width: unset !important;
|
182 |
}
|
|
|
|
|
183 |
#examples_container {
|
184 |
margin: auto;
|
185 |
width: 90%;
|
|
|
187 |
#examples_row {
|
188 |
justify-content: center;
|
189 |
}
|
190 |
+
|
191 |
+
/* ์คํ์ผ๋ฆฌ์ํ ๋ฒํผ */
|
192 |
+
button {
|
193 |
+
background: linear-gradient(145deg, #6a82fb, #fc5c7d);
|
194 |
+
color: #ffffff;
|
195 |
+
font-weight: bold;
|
196 |
+
border: none;
|
197 |
+
border-radius: 10px;
|
198 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
|
199 |
+
padding: 10px 20px;
|
200 |
+
cursor: pointer;
|
201 |
+
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
202 |
+
}
|
203 |
+
button:hover {
|
204 |
+
transform: translateY(-3px);
|
205 |
+
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
|
206 |
+
}
|
207 |
+
|
208 |
+
/* ์
๋ ฅ ํ๋ ๋ฐ ํ
์คํธ๋ฐ์ค ํฌ์ปค์ค ํจ๊ณผ */
|
209 |
+
input[type="text"], textarea {
|
210 |
+
border: 2px solid #ddd;
|
211 |
+
border-radius: 10px;
|
212 |
+
padding: 10px;
|
213 |
+
transition: border-color 0.3s ease, box-shadow 0.3s ease;
|
214 |
+
}
|
215 |
+
input[type="text"]:focus, textarea:focus {
|
216 |
+
border-color: #6a82fb;
|
217 |
+
box-shadow: 0 0 10px rgba(106, 130, 251, 0.5);
|
218 |
+
}
|
219 |
"""
|
220 |
|
221 |
title = """
|
|
|
341 |
1280
|
342 |
]
|
343 |
],
|
|
|
344 |
inputs=[left_prompt, center_prompt, right_prompt, negative_prompt,
|
345 |
left_gs, center_gs, right_gs, overlap, steps, generation_seed,
|
346 |
scheduler, tile_height, tile_width, height, width, max_tile_size],
|