SnowFlash383935 commited on
Commit
dcd6783
·
verified ·
1 Parent(s): 39b661b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,11 +1,11 @@
1
  import gradio as gr
2
  jsf = """
3
- window.addEventListener('load', function () {
4
  gradioURL = window.location.href
5
  if (!gradioURL.endsWith('?__theme=dark')) {
6
  window.location.replace(gradioURL + '?__theme=dark');
7
  }
8
- });
9
  """
10
  def update(name):
11
  return f"Welcome to Gradio, {name}!"
 
1
  import gradio as gr
2
  jsf = """
3
+ function refresh() {
4
  gradioURL = window.location.href
5
  if (!gradioURL.endsWith('?__theme=dark')) {
6
  window.location.replace(gradioURL + '?__theme=dark');
7
  }
8
+ };
9
  """
10
  def update(name):
11
  return f"Welcome to Gradio, {name}!"