AppleSwing commited on
Commit
b778c8f
·
verified ·
1 Parent(s): d445bef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -261,10 +261,15 @@ def auto_refresh_from_dir(
261
 
262
  def build_app() -> gr.Blocks:
263
  row_css = """
264
- /* Main container styling */
 
 
 
 
265
  .gradio-container {
266
  max-width: 100% !important;
267
  padding: 20px !important;
 
268
  }
269
 
270
  /* Table styling */
@@ -324,7 +329,7 @@ def build_app() -> gr.Blocks:
324
 
325
  /* Filter section styling */
326
  .filter-section {
327
- background: white;
328
  padding: 20px;
329
  border-radius: 8px;
330
  border: 1px solid #d1d5db;
@@ -338,11 +343,6 @@ def build_app() -> gr.Blocks:
338
  padding-right: 10px;
339
  }
340
 
341
- /* Checkbox styling */
342
- .gradio-container label.svelte-1c76wbe {
343
- margin-bottom: 8px;
344
- }
345
-
346
  /* Heading styling */
347
  .gradio-container h1 {
348
  color: #111827;
@@ -357,7 +357,8 @@ def build_app() -> gr.Blocks:
357
  }
358
  """
359
 
360
- with gr.Blocks(title="MoE-CAP Dashboard", css=row_css) as demo:
 
361
  gr.Markdown("# MoE-CAP Dashboard")
362
 
363
  with gr.Row():
 
261
 
262
  def build_app() -> gr.Blocks:
263
  row_css = """
264
+ /* Force light theme everywhere */
265
+ body {
266
+ background-color: #f9fafb !important;
267
+ }
268
+
269
  .gradio-container {
270
  max-width: 100% !important;
271
  padding: 20px !important;
272
+ background-color: #f9fafb !important;
273
  }
274
 
275
  /* Table styling */
 
329
 
330
  /* Filter section styling */
331
  .filter-section {
332
+ background: white !important;
333
  padding: 20px;
334
  border-radius: 8px;
335
  border: 1px solid #d1d5db;
 
343
  padding-right: 10px;
344
  }
345
 
 
 
 
 
 
346
  /* Heading styling */
347
  .gradio-container h1 {
348
  color: #111827;
 
357
  }
358
  """
359
 
360
+ # Use Gradio's default (light) theme explicitly
361
+ with gr.Blocks(title="MoE-CAP Dashboard", css=row_css, theme=gr.themes.Default()) as demo:
362
  gr.Markdown("# MoE-CAP Dashboard")
363
 
364
  with gr.Row():