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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -1,16 +1,8 @@
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}!"
12
 
13
- with gr.Blocks(theme='SnowFlash383935/DarkEmerald', js=jsf) as demo:
14
  gr.Markdown("Start typing below and then click **Run** to see the output.")
15
  with gr.Row():
16
  inp = gr.Textbox(placeholder="What is your name?")
 
1
  import gradio as gr
 
 
 
 
 
 
 
 
2
  def update(name):
3
  return f"Welcome to Gradio, {name}!"
4
 
5
+ with gr.Blocks(theme='SnowFlash383935/emerald') as demo:
6
  gr.Markdown("Start typing below and then click **Run** to see the output.")
7
  with gr.Row():
8
  inp = gr.Textbox(placeholder="What is your name?")