Spaces:
Running
Running
Update app.py
Browse files
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:"),
|