openfree commited on
Commit
c6b4030
โ€ข
1 Parent(s): 088314e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +57 -35
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: center !important; /* ์ค‘์•™ ์ •๋ ฌ */
693
- gap: 10px !important;
694
- background: linear-gradient(135deg, #f5f5ff, #f0f0ff);
695
- padding: 12px;
696
- border-radius: 10px;
697
- width: 150% !important; /* ๋„ˆ๋น„ 50% ์ฆ๊ฐ€ */
698
- margin-right: -25% !important; /* ์˜ค๋ฅธ์ชฝ ์—ฌ๋ฐฑ ์กฐ์ • */
699
  }
 
 
700
  .sort-radio > div {
701
  display: flex !important;
702
- gap: 10px !important;
703
- width: 100% !important;
704
- justify-content: space-between !important; /* ๋ฒ„ํŠผ ๊ฐ„๊ฒฉ ๊ท ๋“ฑ ๋ถ„๋ฐฐ */
705
- }
 
706
  .sort-radio > div > div {
707
- flex: 1 !important; /* ๊ท ๋“ฑ ๋ถ„๋ฐฐ */
708
- max-width: 120px !important; /* ์ตœ๋Œ€ ๋„ˆ๋น„ ์ œํ•œ */
709
  }
 
 
710
  .sort-radio label {
711
- width: 100% !important; /* ๋ถ€๋ชจ ๋„ˆ๋น„์— ๋งž์ถค */
712
- padding: 8px 5px !important;
 
 
 
 
 
 
 
 
 
713
  text-align: center !important;
714
- background: linear-gradient(135deg, #ffffff, #f8f9ff);
715
- border-radius: 8px;
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
- background: linear-gradient(135deg, #f0f3ff, #e8ecff);
727
- border-color: rgba(123,97,255,0.3);
728
  }
729
 
 
730
  .sort-radio input:checked + label {
731
- background: linear-gradient(135deg, #7b61ff, #6366f1);
732
- color: white;
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; /* ๋†’์ด 2๋ฐฐ๋กœ ์ฆ๊ฐ€ */
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 4px 12px rgba(99,102,241,0.4);
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("""