freddyaboulton HF staff commited on
Commit
4dd59d6
·
1 Parent(s): d2daf95

force light mode

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -155,4 +155,16 @@ with gr.Blocks() as demo:
155
 
156
  clear_btn.click(fn=clear, inputs=[state], outputs=[html_output, state])
157
 
 
 
 
 
 
 
 
 
 
 
 
 
158
  demo.launch(ssr_mode=False)
 
155
 
156
  clear_btn.click(fn=clear, inputs=[state], outputs=[html_output, state])
157
 
158
+ demo.load(
159
+ fn=None,
160
+ inputs=None,
161
+ outputs=None,
162
+ js=""" () => {
163
+ if (document.querySelectorAll('.dark').length) {
164
+ document.querySelectorAll('.dark').forEach(el => el.classList.remove('dark'));
165
+ }
166
+ }
167
+ """
168
+ )
169
+
170
  demo.launch(ssr_mode=False)