Spaces:
Running
on
Zero
Running
on
Zero
prithivMLmods
commited on
Commit
•
7b95e38
1
Parent(s):
f806a0a
Update app.py
Browse files
app.py
CHANGED
@@ -29,6 +29,20 @@ def check_text(prompt, negative=""):
|
|
29 |
return True
|
30 |
return False
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
style_list = [
|
33 |
{
|
34 |
"name": "3840 x 2160",
|
@@ -304,7 +318,7 @@ css = '''
|
|
304 |
.gradio-container{max-width: 640px !important}
|
305 |
h1{text-align:center}
|
306 |
'''
|
307 |
-
with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
308 |
gr.Markdown(DESCRIPTION)
|
309 |
gr.DuplicateButton(
|
310 |
value="Duplicate Space for private use",
|
|
|
29 |
return True
|
30 |
return False
|
31 |
|
32 |
+
|
33 |
+
|
34 |
+
|
35 |
+
js_func = """
|
36 |
+
function refresh() {
|
37 |
+
const url = new URL(window.location);
|
38 |
+
if (url.searchParams.get('__theme') !== 'dark') {
|
39 |
+
url.searchParams.set('__theme', 'dark');
|
40 |
+
window.location.href = url.href;
|
41 |
+
}
|
42 |
+
}
|
43 |
+
"""
|
44 |
+
|
45 |
+
|
46 |
style_list = [
|
47 |
{
|
48 |
"name": "3840 x 2160",
|
|
|
318 |
.gradio-container{max-width: 640px !important}
|
319 |
h1{text-align:center}
|
320 |
'''
|
321 |
+
with gr.Blocks(css=css, theme="bethecloud/storj_theme", js=js_func) as demo:
|
322 |
gr.Markdown(DESCRIPTION)
|
323 |
gr.DuplicateButton(
|
324 |
value="Duplicate Space for private use",
|