NimaKL commited on
Commit
5412d71
·
verified ·
1 Parent(s): 911d037

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +35 -35
app.py CHANGED
@@ -805,49 +805,49 @@ custom_css = """
805
  }
806
 
807
  .gradio-dropdown > ul::-webkit-scrollbar-track {
808
- background: rgba(51, 65, 85, 0.1) !important;
809
  border-radius: 3px !important;
810
  }
811
 
812
  .gradio-dropdown > ul::-webkit-scrollbar-thumb {
813
- background: rgba(96, 165, 250, 0.5) !important;
814
  border-radius: 3px !important;
815
  }
816
 
817
  .gradio-dropdown > ul::-webkit-scrollbar-thumb:hover {
818
- background: rgba(96, 165, 250, 0.7) !important;
819
  }
820
 
821
  .interests-summary {
822
- background: rgba(30, 41, 59, 0.5);
823
  padding: 20px;
824
  border-radius: 10px;
825
  margin-bottom: 20px;
826
- border: 1px solid rgba(148, 163, 184, 0.1);
827
  }
828
 
829
  .user-interests, .common-interests {
830
- background: rgba(51, 65, 85, 0.5);
831
  padding: 15px;
832
  border-radius: 8px;
833
  margin: 10px 0;
834
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
835
- border: 1px solid rgba(148, 163, 184, 0.2);
836
  }
837
 
838
  .interest-section {
839
  margin: 10px 0;
840
  line-height: 1.5;
841
- color: #e2e8f0;
842
  }
843
 
844
  .question-card {
845
- background: rgba(51, 65, 85, 0.5);
846
  padding: 20px;
847
  border-radius: 8px;
848
  margin: 15px 0;
849
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
850
- border: 1px solid rgba(148, 163, 184, 0.2);
851
  transition: transform 0.2s ease;
852
  }
853
 
@@ -856,7 +856,7 @@ custom_css = """
856
  }
857
 
858
  .question-card h3 {
859
- color: #60a5fa;
860
  margin-top: 0;
861
  margin-bottom: 10px;
862
  font-size: 1.25rem;
@@ -864,72 +864,72 @@ custom_css = """
864
 
865
  .question-meta {
866
  font-size: 0.9em;
867
- color: #cbd5e1;
868
  margin-bottom: 10px;
869
  }
870
 
871
  .author {
872
- color: #93c5fd;
873
  font-weight: 500;
874
  }
875
 
876
  .date {
877
- color: #94a3b8;
878
  }
879
 
880
  .interests {
881
  margin: 10px 0;
882
  font-size: 0.9em;
883
- color: #cbd5e1;
884
  }
885
 
886
  .interest-tags {
887
- color: #93c5fd;
888
  font-weight: 500;
889
  }
890
 
891
  .question-body {
892
  line-height: 1.6;
893
- color: #e2e8f0;
894
  margin-top: 15px;
895
  white-space: pre-wrap;
896
  }
897
 
898
  .recommendation-header {
899
- color: #60a5fa;
900
  padding: 10px 0;
901
  margin: 20px 0;
902
- border-bottom: 2px solid #3b82f6;
903
  }
904
 
905
  .error {
906
- color: #fca5a5;
907
  padding: 15px;
908
- background: rgba(239, 68, 68, 0.2);
909
  border-radius: 8px;
910
  margin: 10px 0;
911
- border: 1px solid rgba(239, 68, 68, 0.3);
912
  }
913
 
914
  .error-header {
915
- color: #fca5a5;
916
  }
917
 
918
  .error-message {
919
- background: rgba(239, 68, 68, 0.2);
920
  padding: 15px;
921
  border-radius: 8px;
922
- color: #fca5a5;
923
- border: 1px solid rgba(239, 68, 68, 0.3);
924
  }
925
 
926
  .no-questions {
927
  padding: 20px;
928
- background: rgba(51, 65, 85, 0.5);
929
  border-radius: 8px;
930
  text-align: center;
931
- color: #94a3b8;
932
- border: 1px solid rgba(148, 163, 184, 0.2);
933
  }
934
 
935
  .loading-spinner {
@@ -937,19 +937,19 @@ custom_css = """
937
  justify-content: center;
938
  align-items: center;
939
  padding: 20px;
940
- color: #60a5fa;
941
  }
942
 
943
  h1, h2, h3 {
944
- color: #60a5fa !important;
945
  }
946
 
947
  strong {
948
- color: #93c5fd;
949
  }
950
 
951
  .user-interests h3, .common-interests h3 {
952
- color: #60a5fa;
953
  margin-top: 0;
954
  margin-bottom: 15px;
955
  font-size: 1.2rem;
 
805
  }
806
 
807
  .gradio-dropdown > ul::-webkit-scrollbar-track {
808
+ background: #f9fafc !important;
809
  border-radius: 3px !important;
810
  }
811
 
812
  .gradio-dropdown > ul::-webkit-scrollbar-thumb {
813
+ background: #219ebc !important;
814
  border-radius: 3px !important;
815
  }
816
 
817
  .gradio-dropdown > ul::-webkit-scrollbar-thumb:hover {
818
+ background: #023047 !important;
819
  }
820
 
821
  .interests-summary {
822
+ background: #ffffff;
823
  padding: 20px;
824
  border-radius: 10px;
825
  margin-bottom: 20px;
826
+ border: 1px solid #219ebc;
827
  }
828
 
829
  .user-interests, .common-interests {
830
+ background: #f9fafc;
831
  padding: 15px;
832
  border-radius: 8px;
833
  margin: 10px 0;
834
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
835
+ border: 1px solid #8ecae6;
836
  }
837
 
838
  .interest-section {
839
  margin: 10px 0;
840
  line-height: 1.5;
841
+ color: #333333;
842
  }
843
 
844
  .question-card {
845
+ background: #ffffff;
846
  padding: 20px;
847
  border-radius: 8px;
848
  margin: 15px 0;
849
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
850
+ border: 1px solid #219ebc;
851
  transition: transform 0.2s ease;
852
  }
853
 
 
856
  }
857
 
858
  .question-card h3 {
859
+ color: #023047;
860
  margin-top: 0;
861
  margin-bottom: 10px;
862
  font-size: 1.25rem;
 
864
 
865
  .question-meta {
866
  font-size: 0.9em;
867
+ color: #333333;
868
  margin-bottom: 10px;
869
  }
870
 
871
  .author {
872
+ color: #219ebc;
873
  font-weight: 500;
874
  }
875
 
876
  .date {
877
+ color: #333333;
878
  }
879
 
880
  .interests {
881
  margin: 10px 0;
882
  font-size: 0.9em;
883
+ color: #333333;
884
  }
885
 
886
  .interest-tags {
887
+ color: #219ebc;
888
  font-weight: 500;
889
  }
890
 
891
  .question-body {
892
  line-height: 1.6;
893
+ color: #333333;
894
  margin-top: 15px;
895
  white-space: pre-wrap;
896
  }
897
 
898
  .recommendation-header {
899
+ color: #023047;
900
  padding: 10px 0;
901
  margin: 20px 0;
902
+ border-bottom: 2px solid #219ebc;
903
  }
904
 
905
  .error {
906
+ color: #dc2626;
907
  padding: 15px;
908
+ background: #fee2e2;
909
  border-radius: 8px;
910
  margin: 10px 0;
911
+ border: 1px solid #dc2626;
912
  }
913
 
914
  .error-header {
915
+ color: #dc2626;
916
  }
917
 
918
  .error-message {
919
+ background: #fee2e2;
920
  padding: 15px;
921
  border-radius: 8px;
922
+ color: #dc2626;
923
+ border: 1px solid #dc2626;
924
  }
925
 
926
  .no-questions {
927
  padding: 20px;
928
+ background: #f9fafc;
929
  border-radius: 8px;
930
  text-align: center;
931
+ color: #333333;
932
+ border: 1px solid #219ebc;
933
  }
934
 
935
  .loading-spinner {
 
937
  justify-content: center;
938
  align-items: center;
939
  padding: 20px;
940
+ color: #219ebc;
941
  }
942
 
943
  h1, h2, h3 {
944
+ color: #023047 !important;
945
  }
946
 
947
  strong {
948
+ color: #219ebc;
949
  }
950
 
951
  .user-interests h3, .common-interests h3 {
952
+ color: #023047;
953
  margin-top: 0;
954
  margin-bottom: 15px;
955
  font-size: 1.2rem;