cccjc commited on
Commit
c1acd4a
1 Parent(s): ef63327

typo fix; update css for dark mode

Browse files
Files changed (3) hide show
  1. .gitignore +2 -0
  2. static/css/style.css +46 -0
  3. utils.py +3 -3
.gitignore CHANGED
@@ -226,3 +226,5 @@ pyrightconfig.json
226
  .ionide
227
 
228
  # End of https://www.toptal.com/developers/gitignore/api/python,visualstudiocode,macos
 
 
 
226
  .ionide
227
 
228
  # End of https://www.toptal.com/developers/gitignore/api/python,visualstudiocode,macos
229
+
230
+ .gradio
static/css/style.css CHANGED
@@ -60,3 +60,49 @@
60
  .custom-dataframe tbody tr:nth-child(even) td:nth-child(n+5) {
61
  background-color: #e6ffe6 !important; /* Slightly darker light green */
62
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  .custom-dataframe tbody tr:nth-child(even) td:nth-child(n+5) {
61
  background-color: #e6ffe6 !important; /* Slightly darker light green */
62
  }
63
+
64
+ /* Dark mode specific styles */
65
+ @media (prefers-color-scheme: dark) {
66
+ .custom-dataframe {
67
+ color: var(--body-text-color);
68
+ }
69
+
70
+ .custom-dataframe table {
71
+ background-color: var(--background-fill-primary);
72
+ }
73
+
74
+ .custom-dataframe thead th {
75
+ background-color: var(--background-fill-secondary);
76
+ color: var(--body-text-color);
77
+ }
78
+
79
+ .custom-dataframe tbody td {
80
+ color: var(--body-text-color);
81
+ }
82
+
83
+ /* Style for global result columns in dark mode */
84
+ .custom-dataframe thead th:nth-child(-n+4),
85
+ .custom-dataframe tbody td:nth-child(-n+4) {
86
+ background-color: rgba(0, 100, 200, 0.1);
87
+ }
88
+
89
+ /* Style for dimension-specific result columns in dark mode */
90
+ .custom-dataframe thead th:nth-child(n+5),
91
+ .custom-dataframe tbody td:nth-child(n+5) {
92
+ background-color: rgba(0, 150, 0, 0.1);
93
+ }
94
+
95
+ /* Hover effect for better row distinction in dark mode */
96
+ .custom-dataframe tbody tr:hover td {
97
+ background-color: rgba(255, 255, 255, 0.05);
98
+ }
99
+
100
+ /* Alternating row colors for better readability in dark mode */
101
+ .custom-dataframe tbody tr:nth-child(even) td:nth-child(-n+4) {
102
+ background-color: rgba(0, 100, 200, 0.15);
103
+ }
104
+
105
+ .custom-dataframe tbody tr:nth-child(even) td:nth-child(n+5) {
106
+ background-color: rgba(0, 150, 0, 0.15);
107
+ }
108
+ }
utils.py CHANGED
@@ -106,11 +106,11 @@ def get_original_keyword(mapped_keyword):
106
  MODEL_GROUPS = {
107
  "All": list(MODEL_DATA.keys()),
108
  "Flagship Models": ['GPT_4o', 'Claude_3.5', 'Gemini_1.5_pro_002', 'Qwen2_VL_72B', 'InternVL2_76B', 'llava_onevision_72B'],
109
- "Efficienty Models": ['Gemini_1.5_flash_002', 'GPT_4o_mini', 'Qwen2_VL_7B', 'Pixtral_12B', 'InternVL2_8B', 'Phi-3.5-vision', 'MiniCPM_v2.6', 'llava_onevision_7B', 'Llama_3_2_11B', 'Idefics3'],
110
  "Proprietary Flagship models": ['GPT_4o', 'Claude_3.5', 'Gemini_1.5_pro_002'],
111
- "Open-source Efficienty Models": ['Qwen2_VL_7B', 'Pixtral_12B', 'InternVL2_8B', 'Phi-3.5-vision', 'MiniCPM_v2.6', 'llava_onevision_7B', 'Llama_3_2_11B', 'Idefics3'],
112
  "Open-source Flagship Models": ['Qwen2_VL_72B', 'InternVL2_76B', 'llava_onevision_72B'],
113
- "Proprietary Efficienty Models": ['Gemini_1.5_flash_002', 'GPT_4o_mini', 'Qwen2_VL_7B', 'Pixtral_12B', 'InternVL2_8B', 'Phi-3.5-vision', 'MiniCPM_v2.6', 'llava_onevision_7B', 'Llama_3_2_11B', 'Idefics3'],
114
  }
115
 
116
  def get_display_model_name(model_name):
 
106
  MODEL_GROUPS = {
107
  "All": list(MODEL_DATA.keys()),
108
  "Flagship Models": ['GPT_4o', 'Claude_3.5', 'Gemini_1.5_pro_002', 'Qwen2_VL_72B', 'InternVL2_76B', 'llava_onevision_72B'],
109
+ "Efficiency Models": ['Gemini_1.5_flash_002', 'GPT_4o_mini', 'Qwen2_VL_7B', 'Pixtral_12B', 'InternVL2_8B', 'Phi-3.5-vision', 'MiniCPM_v2.6', 'llava_onevision_7B', 'Llama_3_2_11B', 'Idefics3'],
110
  "Proprietary Flagship models": ['GPT_4o', 'Claude_3.5', 'Gemini_1.5_pro_002'],
111
+ "Open-source Efficiency Models": ['Qwen2_VL_7B', 'Pixtral_12B', 'InternVL2_8B', 'Phi-3.5-vision', 'MiniCPM_v2.6', 'llava_onevision_7B', 'Llama_3_2_11B', 'Idefics3'],
112
  "Open-source Flagship Models": ['Qwen2_VL_72B', 'InternVL2_76B', 'llava_onevision_72B'],
113
+ "Proprietary Efficiency Models": ['Gemini_1.5_flash_002', 'GPT_4o_mini', 'Qwen2_VL_7B', 'Pixtral_12B', 'InternVL2_8B', 'Phi-3.5-vision', 'MiniCPM_v2.6', 'llava_onevision_7B', 'Llama_3_2_11B', 'Idefics3'],
114
  }
115
 
116
  def get_display_model_name(model_name):