Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,6 +21,16 @@ footer {
|
|
| 21 |
}
|
| 22 |
'''
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
examples = [
|
| 25 |
"3d image, cute girl, in the style of Pixar --ar 1:2 --stylize 750, 4K resolution highlights, Sharp focus, octane render, ray tracing, Ultra-High-Definition, 8k, UHD, HDR, (Masterpiece:1.5), (best quality:1.5)",
|
| 26 |
"Cold coffee in a cup bokeh --ar 85:128 --v 6.0 --style raw5, 4K",
|
|
@@ -120,7 +130,7 @@ def generate(
|
|
| 120 |
image_paths = [save_image(img) for img in images]
|
| 121 |
return image_paths, seed
|
| 122 |
|
| 123 |
-
with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
| 124 |
gr.Markdown(DESCRIPTIONx)
|
| 125 |
|
| 126 |
with gr.Row():
|
|
|
|
| 21 |
}
|
| 22 |
'''
|
| 23 |
|
| 24 |
+
js_func = """
|
| 25 |
+
function refresh() {
|
| 26 |
+
const url = new URL(window.location);
|
| 27 |
+
if (url.searchParams.get('__theme') !== 'dark') {
|
| 28 |
+
url.searchParams.set('__theme', 'dark');
|
| 29 |
+
window.location.href = url.href;
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
"""
|
| 33 |
+
|
| 34 |
examples = [
|
| 35 |
"3d image, cute girl, in the style of Pixar --ar 1:2 --stylize 750, 4K resolution highlights, Sharp focus, octane render, ray tracing, Ultra-High-Definition, 8k, UHD, HDR, (Masterpiece:1.5), (best quality:1.5)",
|
| 36 |
"Cold coffee in a cup bokeh --ar 85:128 --v 6.0 --style raw5, 4K",
|
|
|
|
| 130 |
image_paths = [save_image(img) for img in images]
|
| 131 |
return image_paths, seed
|
| 132 |
|
| 133 |
+
with gr.Blocks(css=css, theme="bethecloud/storj_theme", js=js_func) as demo:
|
| 134 |
gr.Markdown(DESCRIPTIONx)
|
| 135 |
|
| 136 |
with gr.Row():
|