BLACKHOOL commited on
Commit
f3e867b
·
verified ·
1 Parent(s): 940fb28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -80,6 +80,12 @@ app = gr.Interface(
80
  fn=swap_face,
81
  title="Welcome to Roop!",
82
  theme='JohnSmith9982/small_and_pretty',
 
 
 
 
 
 
83
  inputs=[
84
  gr.Image(label="Source Image:"),
85
  gr.Image(label="Target Image:"),
 
80
  fn=swap_face,
81
  title="Welcome to Roop!",
82
  theme='JohnSmith9982/small_and_pretty',
83
+ _js="""
84
+ () => {
85
+ document.body.classList.toggle('dark');
86
+ document.querySelector('gradio-app').style.backgroundColor = 'var(--color-background-primary)'
87
+ }
88
+ """,
89
  inputs=[
90
  gr.Image(label="Source Image:"),
91
  gr.Image(label="Target Image:"),