Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
jsf = """
|
3 |
-
|
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}!"
|
|
|
1 |
import gradio as gr
|
2 |
jsf = """
|
3 |
+
function refresh() {
|
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}!"
|