Spaces:
Running
on
Zero
Running
on
Zero
prithivMLmods
commited on
Commit
•
2b576c7
1
Parent(s):
d2c230a
Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,18 @@ footer {
|
|
107 |
}
|
108 |
'''
|
109 |
|
110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
with gr.Row():
|
112 |
with gr.Column(scale=1):
|
113 |
prompt = gr.Text(
|
|
|
107 |
}
|
108 |
'''
|
109 |
|
110 |
+
|
111 |
+
js_func = """
|
112 |
+
function refresh() {
|
113 |
+
const url = new URL(window.location);
|
114 |
+
if (url.searchParams.get('__theme') !== 'dark') {
|
115 |
+
url.searchParams.set('__theme', 'dark');
|
116 |
+
window.location.href = url.href;
|
117 |
+
}
|
118 |
+
}
|
119 |
+
"""
|
120 |
+
|
121 |
+
with gr.Blocks(css=css, js=js_func, theme="bethecloud/storj_theme") as demo:
|
122 |
with gr.Row():
|
123 |
with gr.Column(scale=1):
|
124 |
prompt = gr.Text(
|