Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
jsf = """
|
3 |
-
function
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
}
|
10 |
-
}
|
11 |
"""
|
12 |
def update(name):
|
13 |
return f"Welcome to Gradio, {name}!"
|
|
|
1 |
import gradio as gr
|
2 |
jsf = """
|
3 |
+
window.addEventListener('load', function () {
|
4 |
+
gradioURL = window.location.href
|
5 |
+
if (!gradioURL.endsWith('?__theme=dark')) {
|
6 |
+
window.location.replace(gradioURL + '?__theme=dark');
|
7 |
+
}
|
8 |
+
});
|
|
|
|
|
9 |
"""
|
10 |
def update(name):
|
11 |
return f"Welcome to Gradio, {name}!"
|