seawolf2357 commited on
Commit
494f87d
ยท
verified ยท
1 Parent(s): 6928fac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +59 -14
app.py CHANGED
@@ -190,7 +190,7 @@ custom_css = """
190
  font-weight: 300;
191
  }
192
 
193
- /* ์ด๋ฏธ์ง€ ์—…๋กœ๋“œ ์˜์—ญ ์Šคํƒ€์ผ */
194
  .image-container {
195
  background: rgba(255, 255, 255, 0.95);
196
  border-radius: 16px;
@@ -206,31 +206,76 @@ custom_css = """
206
  border-color: rgba(102, 126, 234, 0.6);
207
  }
208
 
209
- /* Gradio ์ด๋ฏธ์ง€ ์—…๋กœ๋“œ ์ปดํฌ๋„ŒํŠธ ๋‚ด๋ถ€ ์Šคํƒ€์ผ */
210
- .gr-image {
 
 
 
 
211
  position: relative !important;
212
  }
213
 
214
- .gr-image .upload-container {
 
 
 
 
 
 
 
215
  background: transparent !important;
 
216
  }
217
 
218
- .gr-image .image-frame {
219
- background: rgba(248, 250, 252, 0.5) !important;
220
- border: 2px dashed rgba(102, 126, 234, 0.4) !important;
 
 
 
 
 
221
  }
222
 
223
- /* ์—…๋กœ๋“œ ํ”Œ๋ ˆ์ด์Šคํ™€๋” ์ด๋ฏธ์ง€๊ฐ€ ๋ณด์ด๋„๋ก ์กฐ์ • */
224
- .gr-image .placeholder-image {
225
- opacity: 0.7 !important;
226
- z-index: 1 !important;
 
227
  }
228
 
229
- /* ์—…๋กœ๋“œ๋œ ์ด๋ฏธ์ง€ ์ปจํ…Œ์ด๋„ˆ */
230
- .gr-image img {
 
 
231
  border-radius: 12px !important;
 
 
 
 
 
 
 
232
  position: relative !important;
233
- z-index: 2 !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
234
  }
235
 
236
  /* ๋ผ๋ฒจ ์Šคํƒ€์ผ */
 
190
  font-weight: 300;
191
  }
192
 
193
+ /* ์ด๋ฏธ์ง€ ์—…๋กœ๋“œ ์˜์—ญ ์Šคํƒ€์ผ - ์˜ค๋ฒ„๋ ˆ์ด ๋ฌธ์ œ ํ•ด๊ฒฐ */
194
  .image-container {
195
  background: rgba(255, 255, 255, 0.95);
196
  border-radius: 16px;
 
206
  border-color: rgba(102, 126, 234, 0.6);
207
  }
208
 
209
+ /* Gradio ์ด๋ฏธ์ง€ ์ปดํฌ๋„ŒํŠธ ์˜ค๋ฒ„๋ ˆ์ด ์ œ๊ฑฐ */
210
+ .gr-image .wrap {
211
+ background: transparent !important;
212
+ }
213
+
214
+ .gr-image .wrap.svelte-sq3j11 {
215
  position: relative !important;
216
  }
217
 
218
+ /* ์—…๋กœ๋“œ ํ”Œ๋ ˆ์ด์Šคํ™€๋” ๋ฐฐ๊ฒฝ ํˆฌ๋ช…ํ•˜๊ฒŒ */
219
+ .gr-image .placeholder {
220
+ background: rgba(248, 250, 252, 0.8) !important;
221
+ z-index: 0 !important;
222
+ }
223
+
224
+ /* ์ด๋ฏธ์ง€ ์—…๋กœ๋“œ ์˜์—ญ์˜ ๊ธฐ๋ณธ ๋ฐฐ๊ฒฝ */
225
+ .gr-image .image-container {
226
  background: transparent !important;
227
+ position: relative !important;
228
  }
229
 
230
+ /* ์—…๋กœ๋“œ๋œ ์ด๋ฏธ์ง€๊ฐ€ ์ „์ฒด ์˜์—ญ์„ ์ฐจ์ง€ํ•˜๋„๋ก */
231
+ .gr-image img {
232
+ border-radius: 12px !important;
233
+ position: relative !important;
234
+ z-index: 10 !important;
235
+ max-width: 100% !important;
236
+ height: auto !important;
237
+ display: block !important;
238
  }
239
 
240
+ /* ํ”Œ๋ ˆ์ด์Šคํ™€๋” ์•„์ด์ฝ˜๊ณผ ํ…์ŠคํŠธ๋ฅผ ๋ฐฐ๊ฒฝ์œผ๋กœ */
241
+ .gr-image .placeholder svg,
242
+ .gr-image .placeholder-content {
243
+ opacity: 0.5 !important;
244
+ z-index: 0 !important;
245
  }
246
 
247
+ /* ์—…๋กœ๋“œ ์˜์—ญ ์ „์ฒด๋ฅผ ํด๋ฆญ ๊ฐ€๋Šฅํ•˜๊ฒŒ */
248
+ .gr-image .upload-container {
249
+ background: transparent !important;
250
+ border: 2px dashed rgba(102, 126, 234, 0.3) !important;
251
  border-radius: 12px !important;
252
+ min-height: 400px !important;
253
+ position: relative !important;
254
+ cursor: pointer !important;
255
+ }
256
+
257
+ /* ์—…๋กœ๋“œ๋œ ์ด๋ฏธ์ง€ ์ปจํ…Œ์ด๋„ˆ */
258
+ .gr-image .image-preview {
259
  position: relative !important;
260
+ z-index: 5 !important;
261
+ width: 100% !important;
262
+ height: 100% !important;
263
+ }
264
+
265
+ /* ์ด๋ฏธ์ง€๊ฐ€ ์—…๋กœ๋“œ๋˜๋ฉด ํ”Œ๋ ˆ์ด์Šคํ™€๋” ์ˆจ๊ธฐ๊ธฐ */
266
+ .gr-image:has(img) .placeholder {
267
+ display: none !important;
268
+ }
269
+
270
+ /* ๋ฒ„ํŠผ๋“ค์ด ์ด๋ฏธ์ง€๋ฅผ ๊ฐ€๋ฆฌ์ง€ ์•Š๋„๋ก */
271
+ .gr-image .controls {
272
+ position: absolute !important;
273
+ bottom: 10px !important;
274
+ right: 10px !important;
275
+ z-index: 20 !important;
276
+ background: rgba(255, 255, 255, 0.9) !important;
277
+ border-radius: 8px !important;
278
+ padding: 5px !important;
279
  }
280
 
281
  /* ๋ผ๋ฒจ ์Šคํƒ€์ผ */