Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,17 +22,6 @@ DESCRIPTIONx = """## STABLE HAMSTER 🐹
|
|
| 22 |
"""
|
| 23 |
|
| 24 |
|
| 25 |
-
js_func = """
|
| 26 |
-
window.addEventListener('load', function () {
|
| 27 |
-
gradioURL = window.location.href
|
| 28 |
-
if (!gradioURL.endsWith('?__theme=dark')) {
|
| 29 |
-
window.location.replace(gradioURL + '?__theme=dark');
|
| 30 |
-
}
|
| 31 |
-
});
|
| 32 |
-
"""
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
css = '''
|
| 37 |
.gradio-container{max-width: 560px !important}
|
| 38 |
h1{text-align:center}
|
|
@@ -148,7 +137,7 @@ def generate(
|
|
| 148 |
image_paths = [save_image(img) for img in images]
|
| 149 |
return image_paths, seed
|
| 150 |
#Main gr.Block
|
| 151 |
-
with gr.Blocks(css=css, theme="bethecloud/storj_theme"
|
| 152 |
gr.Markdown(DESCRIPTIONx)
|
| 153 |
with gr.Group():
|
| 154 |
with gr.Row():
|
|
|
|
| 22 |
"""
|
| 23 |
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
css = '''
|
| 26 |
.gradio-container{max-width: 560px !important}
|
| 27 |
h1{text-align:center}
|
|
|
|
| 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") as demo:
|
| 141 |
gr.Markdown(DESCRIPTIONx)
|
| 142 |
with gr.Group():
|
| 143 |
with gr.Row():
|