Spaces:
Sleeping
Sleeping
Update
Browse files
app.py
CHANGED
@@ -90,6 +90,18 @@ def compare_face(frame1, frame2):
|
|
90 |
return [r.json(), [face1, face2]]
|
91 |
|
92 |
with gr.Blocks(theme='aliabid94/new-theme') as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
with gr.Row():
|
94 |
with gr.Column():
|
95 |
compare_face_input1 = gr.Image(label="Image1", type='filepath', height=480)
|
|
|
90 |
return [r.json(), [face1, face2]]
|
91 |
|
92 |
with gr.Blocks(theme='aliabid94/new-theme') as demo:
|
93 |
+
demo.load(
|
94 |
+
None,
|
95 |
+
None,
|
96 |
+
_js="""
|
97 |
+
() => {
|
98 |
+
const params = new URLSearchParams(window.location.search);
|
99 |
+
if (!params.has('__theme')) {
|
100 |
+
params.set('__theme', 'dark');
|
101 |
+
window.location.search = params.toString();
|
102 |
+
}
|
103 |
+
}""",
|
104 |
+
)
|
105 |
with gr.Row():
|
106 |
with gr.Column():
|
107 |
compare_face_input1 = gr.Image(label="Image1", type='filepath', height=480)
|