Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -465,26 +465,71 @@ def create_interface():
|
|
465 |
|
466 |
/* Trial banner styling */
|
467 |
.trial-banner {
|
468 |
-
background: linear-gradient(135deg, #
|
469 |
color: white !important;
|
470 |
padding: 1.5rem !important;
|
471 |
border-radius: 12px !important;
|
472 |
margin-bottom: 2rem !important;
|
473 |
text-align: center !important;
|
|
|
474 |
}
|
475 |
|
476 |
-
/* Button styling */
|
477 |
.gr-button[variant="primary"] {
|
478 |
-
background:
|
479 |
color: white !important;
|
480 |
border: none !important;
|
481 |
border-radius: 8px !important;
|
482 |
font-weight: 600 !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
483 |
}
|
484 |
|
485 |
/* Progress bar styling */
|
486 |
-
.progress
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
487 |
background-color: #748ffc !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
488 |
}
|
489 |
"""
|
490 |
) as demo:
|
@@ -533,6 +578,9 @@ def create_interface():
|
|
533 |
# Create the Gradio interface
|
534 |
demo = create_interface()
|
535 |
|
|
|
|
|
|
|
536 |
# Export for HuggingFace Spaces to pick up
|
537 |
if __name__ == "__main__":
|
538 |
# Launch the Gradio demo directly for HF Spaces
|
|
|
465 |
|
466 |
/* Trial banner styling */
|
467 |
.trial-banner {
|
468 |
+
background: linear-gradient(135deg, #9775fa 0%, #667eea 100%) !important;
|
469 |
color: white !important;
|
470 |
padding: 1.5rem !important;
|
471 |
border-radius: 12px !important;
|
472 |
margin-bottom: 2rem !important;
|
473 |
text-align: center !important;
|
474 |
+
box-shadow: 0 4px 15px rgba(151, 117, 250, 0.2) !important;
|
475 |
}
|
476 |
|
477 |
+
/* Button styling - match header section color */
|
478 |
.gr-button[variant="primary"] {
|
479 |
+
background: #9775fa !important;
|
480 |
color: white !important;
|
481 |
border: none !important;
|
482 |
border-radius: 8px !important;
|
483 |
font-weight: 600 !important;
|
484 |
+
transition: all 0.3s ease !important;
|
485 |
+
}
|
486 |
+
|
487 |
+
.gr-button[variant="primary"]:hover {
|
488 |
+
background: #8b5ff8 !important;
|
489 |
+
transform: translateY(-1px) !important;
|
490 |
+
box-shadow: 0 4px 12px rgba(151, 117, 250, 0.3) !important;
|
491 |
}
|
492 |
|
493 |
/* Progress bar styling */
|
494 |
+
.gr-progress {
|
495 |
+
background-color: #f0f0f0 !important;
|
496 |
+
border-radius: 10px !important;
|
497 |
+
overflow: hidden !important;
|
498 |
+
height: 12px !important;
|
499 |
+
margin: 15px 0 !important;
|
500 |
+
border: 1px solid #e0e0e0 !important;
|
501 |
+
}
|
502 |
+
|
503 |
+
.gr-progress-bar {
|
504 |
background-color: #748ffc !important;
|
505 |
+
height: 100% !important;
|
506 |
+
border-radius: 10px !important;
|
507 |
+
transition: width 0.3s ease !important;
|
508 |
+
background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent) !important;
|
509 |
+
background-size: 20px 20px !important;
|
510 |
+
animation: progress-animation 1s linear infinite !important;
|
511 |
+
}
|
512 |
+
|
513 |
+
.gr-progress-text {
|
514 |
+
color: #748ffc !important;
|
515 |
+
font-weight: 600 !important;
|
516 |
+
font-size: 0.9rem !important;
|
517 |
+
margin: 5px 0 !important;
|
518 |
+
text-align: center !important;
|
519 |
+
}
|
520 |
+
|
521 |
+
@keyframes progress-animation {
|
522 |
+
0% { background-position: 0 0; }
|
523 |
+
100% { background-position: 20px 0; }
|
524 |
+
}
|
525 |
+
|
526 |
+
/* Ensure progress container is visible */
|
527 |
+
.gr-form .gr-block:has(.gr-progress) {
|
528 |
+
background-color: #fafafa !important;
|
529 |
+
border: 2px solid #748ffc !important;
|
530 |
+
border-radius: 12px !important;
|
531 |
+
padding: 20px !important;
|
532 |
+
margin: 15px 0 !important;
|
533 |
}
|
534 |
"""
|
535 |
) as demo:
|
|
|
578 |
# Create the Gradio interface
|
579 |
demo = create_interface()
|
580 |
|
581 |
+
# Enable queueing for progress bars to work properly
|
582 |
+
demo.queue()
|
583 |
+
|
584 |
# Export for HuggingFace Spaces to pick up
|
585 |
if __name__ == "__main__":
|
586 |
# Launch the Gradio demo directly for HF Spaces
|