CyberFox commited on
Commit
1a93c81
·
1 Parent(s): ffbc075

fix: force light theme always

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -451,6 +451,8 @@ with gr.Blocks(
451
  font=("Inter", "system-ui", "sans-serif"),
452
  ),
453
  ) as demo:
 
 
454
 
455
  with gr.Tabs():
456
  # ---- TEXT TAB ----
 
451
  font=("Inter", "system-ui", "sans-serif"),
452
  ),
453
  ) as demo:
454
+ # Force light theme regardless of user's system preference
455
+ demo.load(None, js="() => { document.querySelector('body').classList.remove('dark'); document.documentElement.style.colorScheme = 'light'; }")
456
 
457
  with gr.Tabs():
458
  # ---- TEXT TAB ----