Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,6 @@ def swap_face(source_file, target_file, doFaceEnhancer):
|
|
79 |
app = gr.Interface(
|
80 |
fn=swap_face,
|
81 |
title="Welcome to Roop!",
|
82 |
-
theme='ParityError/Interstellar',
|
83 |
inputs=[
|
84 |
gr.Image(label="Source Image:"),
|
85 |
gr.Image(label="Target Image:"),
|
@@ -87,4 +86,11 @@ app = gr.Interface(
|
|
87 |
],
|
88 |
outputs="image"
|
89 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
app.launch()
|
|
|
79 |
app = gr.Interface(
|
80 |
fn=swap_face,
|
81 |
title="Welcome to Roop!",
|
|
|
82 |
inputs=[
|
83 |
gr.Image(label="Source Image:"),
|
84 |
gr.Image(label="Target Image:"),
|
|
|
86 |
],
|
87 |
outputs="image"
|
88 |
)
|
89 |
+
function refresh() {
|
90 |
+
const url = new URL(window.location);
|
91 |
+
if (url.searchParams.get('__theme') !== 'dark') {
|
92 |
+
url.searchParams.set('__theme', 'dark');
|
93 |
+
window.location.href = url.href;
|
94 |
+
}
|
95 |
+
}
|
96 |
app.launch()
|