BLACKHOOL commited on
Commit
900a0b2
·
verified ·
1 Parent(s): 615a548

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
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()