fantos commited on
Commit
cb99de3
ยท
verified ยท
1 Parent(s): b77afd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +47 -9
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 { background-color: #f0f2f5; }
 
 
 
165
  .gradio-container {
166
- background: #ffffff;
167
- border-radius: 15px;
168
- padding: 20px;
169
- box-shadow: 0 4px 10px rgba(0,0,0,0.1);
 
 
 
 
 
 
 
 
 
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],