aicodingfun commited on
Commit
b3f6d25
·
verified ·
1 Parent(s): 0889a94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -299,6 +299,13 @@ def create_interface():
299
  subtree: true
300
  });
301
  }
 
 
 
 
 
 
 
302
  """
303
 
304
  with gr.Blocks(
 
299
  subtree: true
300
  });
301
  }
302
+ function refresh() {
303
+ const url = new URL(window.location);
304
+ if (url.searchParams.get('__theme') !== 'dark') {
305
+ url.searchParams.set('__theme', 'dark');
306
+ window.location.href = url.href;
307
+ }
308
+ }
309
  """
310
 
311
  with gr.Blocks(