Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -21,20 +21,6 @@ DESCRIPTIONx = """## STABLE HAMSTER 🐹
|
|
21 |
|
22 |
"""
|
23 |
|
24 |
-
js_func = """
|
25 |
-
|
26 |
-
function () {
|
27 |
-
const url = new URL(window.location);
|
28 |
-
if (url.searchParams.get('__theme') !== 'dark') {
|
29 |
-
url.searchParams.set('__theme', 'dark');
|
30 |
-
window.location.href = url.href;
|
31 |
-
}
|
32 |
-
}
|
33 |
-
|
34 |
-
"""
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
|
39 |
css = '''
|
40 |
.gradio-container{max-width: 560px !important}
|
@@ -151,7 +137,8 @@ def generate(
|
|
151 |
image_paths = [save_image(img) for img in images]
|
152 |
return image_paths, seed
|
153 |
#Main gr.Block
|
154 |
-
with gr.Blocks(css=css, theme="bethecloud/storj_theme", js=js_func) as demo:
|
|
|
155 |
gr.Markdown(DESCRIPTIONx)
|
156 |
with gr.Group():
|
157 |
with gr.Row():
|
|
|
21 |
|
22 |
"""
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
css = '''
|
26 |
.gradio-container{max-width: 560px !important}
|
|
|
137 |
image_paths = [save_image(img) for img in images]
|
138 |
return image_paths, seed
|
139 |
#Main gr.Block
|
140 |
+
#with gr.Blocks(css=css, theme="bethecloud/storj_theme", js=js_func) as demo:
|
141 |
+
with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
142 |
gr.Markdown(DESCRIPTIONx)
|
143 |
with gr.Group():
|
144 |
with gr.Row():
|