Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -686,54 +686,75 @@ def create_interface():
|
|
686 |
box-shadow: 0 0 0 2px rgba(123,97,255,0.2);
|
687 |
background: linear-gradient(135deg, #ffffff, #f0f3ff);
|
688 |
}
|
689 |
-
/* ์ ๋ ฌ
|
690 |
.sort-radio {
|
691 |
display: flex !important;
|
692 |
-
justify-content:
|
693 |
-
gap:
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
width: 150% !important; /* ๋๋น 50% ์ฆ๊ฐ */
|
698 |
-
margin-right: -25% !important; /* ์ค๋ฅธ์ชฝ ์ฌ๋ฐฑ ์กฐ์ */
|
699 |
}
|
|
|
|
|
700 |
.sort-radio > div {
|
701 |
display: flex !important;
|
702 |
-
gap:
|
703 |
-
width:
|
704 |
-
|
705 |
-
|
|
|
706 |
.sort-radio > div > div {
|
707 |
-
|
708 |
-
|
709 |
}
|
|
|
|
|
710 |
.sort-radio label {
|
711 |
-
width:
|
712 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
713 |
text-align: center !important;
|
714 |
-
|
715 |
-
|
716 |
-
cursor: pointer;
|
717 |
-
transition: all 0.3s ease;
|
718 |
-
border: 1px solid rgba(123,97,255,0.1);
|
719 |
-
white-space: nowrap !important;
|
720 |
-
font-size: 0.9em !important;
|
721 |
-
display: block !important;
|
722 |
}
|
723 |
-
|
724 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
725 |
.sort-radio label:hover {
|
726 |
-
|
727 |
-
|
728 |
}
|
729 |
|
|
|
730 |
.sort-radio input:checked + label {
|
731 |
-
|
732 |
-
|
733 |
-
border-color: transparent;
|
734 |
}
|
735 |
|
736 |
-
/* ๋ฆฌํ๋ ์ ๋ฒํผ ์คํ์ผ
|
737 |
.refresh-btn {
|
738 |
background: linear-gradient(135deg, #7b61ff, #6366f1);
|
739 |
color: white;
|
@@ -743,19 +764,20 @@ def create_interface():
|
|
743 |
cursor: pointer;
|
744 |
transition: all 0.3s ease;
|
745 |
width: 120px;
|
746 |
-
height: 80px !important;
|
747 |
display: flex;
|
748 |
align-items: center;
|
749 |
justify-content: center;
|
750 |
margin-left: auto;
|
751 |
-
font-size: 1.2em !important;
|
|
|
752 |
}
|
|
|
753 |
.refresh-btn:hover {
|
754 |
transform: translateY(-2px);
|
755 |
-
box-shadow: 0
|
756 |
background: linear-gradient(135deg, #8b71ff, #7376f1);
|
757 |
}
|
758 |
-
|
759 |
""") as interface:
|
760 |
|
761 |
gr.Markdown("""
|
|
|
686 |
box-shadow: 0 0 0 2px rgba(123,97,255,0.2);
|
687 |
background: linear-gradient(135deg, #ffffff, #f0f3ff);
|
688 |
}
|
689 |
+
/* ์ ๋ ฌ ๋ฒํผ ์ปจํ
์ด๋ ์์ */
|
690 |
.sort-radio {
|
691 |
display: flex !important;
|
692 |
+
justify-content: flex-start !important;
|
693 |
+
gap: 15px !important;
|
694 |
+
width: auto !important;
|
695 |
+
background: transparent !important;
|
696 |
+
padding: 0 !important;
|
|
|
|
|
697 |
}
|
698 |
+
|
699 |
+
/* ๋ผ๋์ค ๋ฒํผ ๊ทธ๋ฃน ์ปจํ
์ด๋ */
|
700 |
.sort-radio > div {
|
701 |
display: flex !important;
|
702 |
+
gap: 15px !important;
|
703 |
+
width: auto !important;
|
704 |
+
}
|
705 |
+
|
706 |
+
/* ๊ฐ ๋ผ๋์ค ๋ฒํผ ํญ๋ชฉ */
|
707 |
.sort-radio > div > div {
|
708 |
+
width: 120px !important;
|
709 |
+
height: 80px !important;
|
710 |
}
|
711 |
+
|
712 |
+
/* ๋ผ๋์ค ๋ฒํผ์ ๋ฒํผ์ฒ๋ผ ์คํ์ผ๋ง */
|
713 |
.sort-radio label {
|
714 |
+
width: 120px !important;
|
715 |
+
height: 80px !important;
|
716 |
+
display: flex !important;
|
717 |
+
align-items: center !important;
|
718 |
+
justify-content: center !important;
|
719 |
+
color: white !important;
|
720 |
+
border: none !important;
|
721 |
+
border-radius: 10px !important;
|
722 |
+
cursor: pointer !important;
|
723 |
+
transition: all 0.3s ease !important;
|
724 |
+
font-size: 1.2em !important;
|
725 |
text-align: center !important;
|
726 |
+
padding: 10px !important;
|
727 |
+
box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
728 |
}
|
|
|
729 |
|
730 |
+
/* ์ฒซ ๋ฒ์งธ ๋ฒํผ (rank) */
|
731 |
+
.sort-radio > div > div:nth-child(1) label {
|
732 |
+
background: linear-gradient(135deg, #4CAF50, #45a049) !important;
|
733 |
+
}
|
734 |
+
|
735 |
+
/* ๋ ๋ฒ์งธ ๋ฒํผ (rising_rate) */
|
736 |
+
.sort-radio > div > div:nth-child(2) label {
|
737 |
+
background: linear-gradient(135deg, #2196F3, #1976D2) !important;
|
738 |
+
}
|
739 |
+
|
740 |
+
/* ์ธ ๋ฒ์งธ ๋ฒํผ (popularity) */
|
741 |
+
.sort-radio > div > div:nth-child(3) label {
|
742 |
+
background: linear-gradient(135deg, #9C27B0, #7B1FA2) !important;
|
743 |
+
}
|
744 |
+
|
745 |
+
/* ํธ๋ฒ ํจ๊ณผ */
|
746 |
.sort-radio label:hover {
|
747 |
+
transform: translateY(-2px) !important;
|
748 |
+
box-shadow: 0 6px 12px rgba(0,0,0,0.2) !important;
|
749 |
}
|
750 |
|
751 |
+
/* ์ ํ๋ ๋ฒํผ ์คํ์ผ */
|
752 |
.sort-radio input:checked + label {
|
753 |
+
box-shadow: inset 0 2px 4px rgba(0,0,0,0.2) !important;
|
754 |
+
transform: translateY(1px) !important;
|
|
|
755 |
}
|
756 |
|
757 |
+
/* ๋ฆฌํ๋ ์ ๋ฒํผ ์คํ์ผ */
|
758 |
.refresh-btn {
|
759 |
background: linear-gradient(135deg, #7b61ff, #6366f1);
|
760 |
color: white;
|
|
|
764 |
cursor: pointer;
|
765 |
transition: all 0.3s ease;
|
766 |
width: 120px;
|
767 |
+
height: 80px !important;
|
768 |
display: flex;
|
769 |
align-items: center;
|
770 |
justify-content: center;
|
771 |
margin-left: auto;
|
772 |
+
font-size: 1.2em !important;
|
773 |
+
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
774 |
}
|
775 |
+
|
776 |
.refresh-btn:hover {
|
777 |
transform: translateY(-2px);
|
778 |
+
box-shadow: 0 6px 12px rgba(0,0,0,0.2);
|
779 |
background: linear-gradient(135deg, #8b71ff, #7376f1);
|
780 |
}
|
|
|
781 |
""") as interface:
|
782 |
|
783 |
gr.Markdown("""
|