apsys commited on
Commit
fbcfbe8
·
1 Parent(s): 9ae09c0
Files changed (1) hide show
  1. app.py +26 -1
app.py CHANGED
@@ -12,6 +12,7 @@ import plotly.express as px
12
  import plotly.graph_objects as go
13
  from apscheduler.schedulers.background import BackgroundScheduler
14
  import numpy as np
 
15
 
16
  from src.about import (
17
  CITATION_BUTTON_LABEL,
@@ -69,7 +70,31 @@ except Exception as e:
69
  logger.error(f"Error loading leaderboard data: {e}")
70
  LEADERBOARD_DF = pd.DataFrame()
71
 
72
- print(DISPLAY_COLS)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
 
74
  # Define the update_column_choices function before initializing the leaderboard components
75
  def update_column_choices(df):
 
12
  import plotly.graph_objects as go
13
  from apscheduler.schedulers.background import BackgroundScheduler
14
  import numpy as np
15
+ from gradio.themes.utils import fonts
16
 
17
  from src.about import (
18
  CITATION_BUTTON_LABEL,
 
70
  logger.error(f"Error loading leaderboard data: {e}")
71
  LEADERBOARD_DF = pd.DataFrame()
72
 
73
+ custom_theme = gr.themes.Default(
74
+ font=(fonts.GoogleFont("Inter"), "sans-serif")
75
+ ).set(
76
+ # font_size="16px",
77
+ body_background_fill="#0f0f10",
78
+ body_text_color="#f4f4f5",
79
+ body_text_color_subdued="#a1a1aa",
80
+ block_background_fill="#18181b",
81
+ block_border_color="#27272a",
82
+ block_shadow="none",
83
+ button_primary_background_fill="#f4f4f5",
84
+ button_primary_text_color="#0f0f10",
85
+ button_secondary_background_fill="#27272a",
86
+ button_secondary_text_color="#f4f4f5",
87
+ input_background_fill="#1f1f23",
88
+ input_border_color="#3f3f46",
89
+ input_placeholder_color="#71717a",
90
+ table_border_color="#3f3f46",
91
+ table_even_background_fill="#1c1c1f",
92
+ table_odd_background_fill="#18181b",
93
+ table_text_color="#f4f4f5",
94
+ link_text_color="#ffffff",
95
+ border_color_primary="#f4f4f5",
96
+ background_fill_secondary="#27272a",
97
+ )
98
 
99
  # Define the update_column_choices function before initializing the leaderboard components
100
  def update_column_choices(df):