Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 215 |
background: transparent !important;
|
|
|
|
| 216 |
}
|
| 217 |
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
border:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 221 |
}
|
| 222 |
|
| 223 |
-
/*
|
| 224 |
-
.gr-image .placeholder
|
| 225 |
-
|
| 226 |
-
|
|
|
|
| 227 |
}
|
| 228 |
|
| 229 |
-
/*
|
| 230 |
-
.gr-image
|
|
|
|
|
|
|
| 231 |
border-radius: 12px !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 232 |
position: relative !important;
|
| 233 |
-
z-index:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
/* ๋ผ๋ฒจ ์คํ์ผ */
|