Spaces:
Running
on
Zero
Running
on
Zero
prithivMLmods
commited on
Commit
•
2a3f884
1
Parent(s):
0a329ff
Update app.py
Browse files
app.py
CHANGED
@@ -25,15 +25,15 @@ footer {
|
|
25 |
}
|
26 |
'''
|
27 |
|
28 |
-
js_func = """
|
29 |
-
function refresh() {
|
30 |
-
|
31 |
-
if (url.searchParams.get('__theme') !== 'dark') {
|
32 |
-
|
33 |
-
|
34 |
-
}
|
35 |
-
}
|
36 |
-
"""
|
37 |
|
38 |
examples = [
|
39 |
"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)",
|
@@ -152,7 +152,7 @@ def load_predefined_images():
|
|
152 |
]
|
153 |
return predefined_images
|
154 |
|
155 |
-
with gr.Blocks(css=css, theme="bethecloud/storj_theme"
|
156 |
gr.Markdown(DESCRIPTIONx)
|
157 |
with gr.Row():
|
158 |
prompt = gr.Text(
|
|
|
25 |
}
|
26 |
'''
|
27 |
|
28 |
+
#js_func = """
|
29 |
+
#function refresh() {
|
30 |
+
# const url = new URL(window.location);
|
31 |
+
#if (url.searchParams.get('__theme') !== 'dark') {
|
32 |
+
# url.searchParams.set('__theme', 'dark');
|
33 |
+
# window.location.href = url.href;
|
34 |
+
#}
|
35 |
+
#}
|
36 |
+
#"""
|
37 |
|
38 |
examples = [
|
39 |
"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)",
|
|
|
152 |
]
|
153 |
return predefined_images
|
154 |
|
155 |
+
with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
156 |
gr.Markdown(DESCRIPTIONx)
|
157 |
with gr.Row():
|
158 |
prompt = gr.Text(
|