Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -261,19 +261,68 @@ body {
|
|
| 261 |
to { opacity: 1; transform: scale(1) translateY(0); }
|
| 262 |
}
|
| 263 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 264 |
.gr-button {
|
| 265 |
-
background: linear-gradient(135deg, #
|
| 266 |
border: none !important;
|
| 267 |
-
border-radius:
|
| 268 |
-
padding:
|
| 269 |
color: white !important;
|
| 270 |
-
font-weight:
|
| 271 |
-
font-size: 1.
|
| 272 |
cursor: pointer !important;
|
| 273 |
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
|
| 274 |
-
box-shadow: 0
|
| 275 |
position: relative !important;
|
| 276 |
overflow: hidden !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 277 |
}
|
| 278 |
|
| 279 |
.gr-button::before {
|
|
@@ -283,8 +332,8 @@ body {
|
|
| 283 |
left: -100%;
|
| 284 |
width: 100%;
|
| 285 |
height: 100%;
|
| 286 |
-
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.
|
| 287 |
-
transition: left 0.6s;
|
| 288 |
}
|
| 289 |
|
| 290 |
.gr-button:hover::before {
|
|
@@ -292,13 +341,38 @@ body {
|
|
| 292 |
}
|
| 293 |
|
| 294 |
.gr-button:hover {
|
| 295 |
-
transform: translateY(-
|
| 296 |
-
box-shadow: 0
|
| 297 |
-
background: linear-gradient(135deg, #
|
| 298 |
}
|
| 299 |
|
| 300 |
.gr-button:active {
|
| 301 |
-
transform: translateY(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 302 |
}
|
| 303 |
|
| 304 |
.gr-form {
|
|
|
|
| 261 |
to { opacity: 1; transform: scale(1) translateY(0); }
|
| 262 |
}
|
| 263 |
|
| 264 |
+
/* Upload Image Box Styling */
|
| 265 |
+
.gr-file-upload, .gr-image {
|
| 266 |
+
background: rgba(255,255,255,0.08) !important;
|
| 267 |
+
backdrop-filter: blur(20px) !important;
|
| 268 |
+
border: 2px dashed rgba(255,255,255,0.3) !important;
|
| 269 |
+
border-radius: 25px !important;
|
| 270 |
+
padding: 30px !important;
|
| 271 |
+
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
|
| 272 |
+
position: relative !important;
|
| 273 |
+
overflow: hidden !important;
|
| 274 |
+
}
|
| 275 |
+
|
| 276 |
+
.gr-file-upload::before, .gr-image::before {
|
| 277 |
+
content: '';
|
| 278 |
+
position: absolute;
|
| 279 |
+
top: -50%;
|
| 280 |
+
left: -50%;
|
| 281 |
+
width: 200%;
|
| 282 |
+
height: 200%;
|
| 283 |
+
background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
|
| 284 |
+
animation: rotateGlow 15s linear infinite;
|
| 285 |
+
pointer-events: none;
|
| 286 |
+
}
|
| 287 |
+
|
| 288 |
+
@keyframes rotateGlow {
|
| 289 |
+
from { transform: rotate(0deg); }
|
| 290 |
+
to { transform: rotate(360deg); }
|
| 291 |
+
}
|
| 292 |
+
|
| 293 |
+
.gr-file-upload:hover, .gr-image:hover {
|
| 294 |
+
background: rgba(255,255,255,0.12) !important;
|
| 295 |
+
border-color: rgba(102, 126, 234, 0.6) !important;
|
| 296 |
+
transform: scale(1.02) !important;
|
| 297 |
+
box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2) !important;
|
| 298 |
+
}
|
| 299 |
+
|
| 300 |
+
.gr-file-upload .upload-text, .gr-image .upload-text {
|
| 301 |
+
color: rgba(255,255,255,0.9) !important;
|
| 302 |
+
font-size: 1.1em !important;
|
| 303 |
+
font-weight: 500 !important;
|
| 304 |
+
text-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
|
| 305 |
+
}
|
| 306 |
+
|
| 307 |
+
/* Enhanced Button Styling */
|
| 308 |
.gr-button {
|
| 309 |
+
background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 25%, #ff8a80 50%, #ff5722 75%, #d84315 100%) !important;
|
| 310 |
border: none !important;
|
| 311 |
+
border-radius: 25px !important;
|
| 312 |
+
padding: 18px 50px !important;
|
| 313 |
color: white !important;
|
| 314 |
+
font-weight: 700 !important;
|
| 315 |
+
font-size: 1.2em !important;
|
| 316 |
cursor: pointer !important;
|
| 317 |
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
|
| 318 |
+
box-shadow: 0 15px 35px rgba(255, 87, 34, 0.4) !important;
|
| 319 |
position: relative !important;
|
| 320 |
overflow: hidden !important;
|
| 321 |
+
text-transform: uppercase !important;
|
| 322 |
+
letter-spacing: 1px !important;
|
| 323 |
+
margin: 25px auto !important;
|
| 324 |
+
display: block !important;
|
| 325 |
+
width: fit-content !important;
|
| 326 |
}
|
| 327 |
|
| 328 |
.gr-button::before {
|
|
|
|
| 332 |
left: -100%;
|
| 333 |
width: 100%;
|
| 334 |
height: 100%;
|
| 335 |
+
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
|
| 336 |
+
transition: left 0.6s ease;
|
| 337 |
}
|
| 338 |
|
| 339 |
.gr-button:hover::before {
|
|
|
|
| 341 |
}
|
| 342 |
|
| 343 |
.gr-button:hover {
|
| 344 |
+
transform: translateY(-5px) scale(1.05) !important;
|
| 345 |
+
box-shadow: 0 25px 50px rgba(255, 87, 34, 0.6) !important;
|
| 346 |
+
background: linear-gradient(135deg, #ff5252 0%, #d32f2f 25%, #ff7043 50%, #e64a19 75%, #bf360c 100%) !important;
|
| 347 |
}
|
| 348 |
|
| 349 |
.gr-button:active {
|
| 350 |
+
transform: translateY(-2px) scale(1.02) !important;
|
| 351 |
+
box-shadow: 0 15px 30px rgba(255, 87, 34, 0.5) !important;
|
| 352 |
+
}
|
| 353 |
+
|
| 354 |
+
/* Image Preview Styling */
|
| 355 |
+
.gr-image img {
|
| 356 |
+
border-radius: 20px !important;
|
| 357 |
+
box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
|
| 358 |
+
transition: all 0.3s ease !important;
|
| 359 |
+
}
|
| 360 |
+
|
| 361 |
+
.gr-image img:hover {
|
| 362 |
+
transform: scale(1.02) !important;
|
| 363 |
+
box-shadow: 0 15px 40px rgba(0,0,0,0.4) !important;
|
| 364 |
+
}
|
| 365 |
+
|
| 366 |
+
/* Upload Area Text */
|
| 367 |
+
.gr-file-upload div {
|
| 368 |
+
color: rgba(255,255,255,0.8) !important;
|
| 369 |
+
}
|
| 370 |
+
|
| 371 |
+
/* Drag and Drop Styling */
|
| 372 |
+
.gr-file-upload.drag-over {
|
| 373 |
+
background: rgba(102, 126, 234, 0.2) !important;
|
| 374 |
+
border-color: rgba(102, 126, 234, 0.8) !important;
|
| 375 |
+
transform: scale(1.05) !important;
|
| 376 |
}
|
| 377 |
|
| 378 |
.gr-form {
|