Michael commited on
Commit
b7e2ffe
·
1 Parent(s): 6795f79
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -7379,7 +7379,7 @@ if __name__ == "__main__":
7379
  --background-fill-secondary:#f8f9fa!important;
7380
  color-scheme:light!important}
7381
  .gradio-container{background:#fff!important}
7382
- .dark .gradio-container{background:#fff!important}
7383
  .gradio-container,.gradio-container *{font-size:calc(1em + 0px)!important}
7384
 
7385
  body, .gradio-container { padding-top:0!important; margin-top:0!important; }
@@ -7409,6 +7409,10 @@ if __name__ == "__main__":
7409
 
7410
  js = """
7411
  <script>
 
 
 
 
7412
  (function() {
7413
  function attachTooltipListeners() {
7414
  /* Position popup on mouseenter — viewport-relative (position:fixed) */
 
7379
  --background-fill-secondary:#f8f9fa!important;
7380
  color-scheme:light!important}
7381
  .gradio-container{background:#fff!important}
7382
+ .dark .gradio-container {background-color: white !important;}
7383
  .gradio-container,.gradio-container *{font-size:calc(1em + 0px)!important}
7384
 
7385
  body, .gradio-container { padding-top:0!important; margin-top:0!important; }
 
7409
 
7410
  js = """
7411
  <script>
7412
+ () => {
7413
+ document.body.classList.remove('dark');
7414
+ document.documentElement.classList.remove('dark');
7415
+ };
7416
  (function() {
7417
  function attachTooltipListeners() {
7418
  /* Position popup on mouseenter — viewport-relative (position:fixed) */