Spaces:
Runtime error
Runtime error
Commit
·
5af8062
1
Parent(s):
9542773
Update app.py
Browse files
app.py
CHANGED
@@ -392,6 +392,14 @@ with gr.Blocks(css="style.css") as demo:
|
|
392 |
# <img src="https://iccv2023.thecvf.com/img/LogoICCV23V04.svg" width="400" style="margin: 0 auto;" />
|
393 |
# ''', elem_id="iccv_logo")
|
394 |
|
395 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
396 |
demo.queue()
|
397 |
demo.launch()
|
|
|
392 |
# <img src="https://iccv2023.thecvf.com/img/LogoICCV23V04.svg" width="400" style="margin: 0 auto;" />
|
393 |
# ''', elem_id="iccv_logo")
|
394 |
|
395 |
+
demo.load(
|
396 |
+
fn=lambda: None,
|
397 |
+
_js='''window.addEventListener('load', function () {
|
398 |
+
gradioURL = window.location.href
|
399 |
+
if (!gradioURL.endsWith('?__theme=dark')) {
|
400 |
+
window.location.replace(gradioURL + '?__theme=dark');
|
401 |
+
}
|
402 |
+
});'''
|
403 |
+
)
|
404 |
demo.queue()
|
405 |
demo.launch()
|