Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -119,12 +119,21 @@ CSS="""
|
|
119 |
.output { width=112px; height=112px; max_width=112px; max_height=112px; !important; }
|
120 |
.gallery { min_width=512px; min_height=512px; max_height=1024px; !important; }
|
121 |
.guide { text-align: center; !important; }
|
122 |
-
/* TESTING */
|
123 |
"""
|
124 |
|
|
|
|
|
|
|
125 |
|
126 |
-
|
127 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
gr.HTML("")
|
129 |
with gr.Tab('6 Models'):
|
130 |
with gr.Column(scale=2):
|
|
|
119 |
.output { width=112px; height=112px; max_width=112px; max_height=112px; !important; }
|
120 |
.gallery { min_width=512px; min_height=512px; max_height=1024px; !important; }
|
121 |
.guide { text-align: center; !important; }
|
|
|
122 |
"""
|
123 |
|
124 |
+
js_func = """
|
125 |
+
function refresh() {
|
126 |
+
const url = new URL(window.location);
|
127 |
|
128 |
+
if (url.searchParams.get('__theme') !== 'dark') {
|
129 |
+
url.searchParams.set('__theme', 'dark');
|
130 |
+
window.location.href = url.href;
|
131 |
+
}
|
132 |
+
}
|
133 |
+
"""
|
134 |
+
|
135 |
+
# with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS, js=js_func) as demo:
|
136 |
+
with gr.Blocks(theme='JohnSmith9982/small_and_pretty', fill_width=True, css=CSS) as demo:
|
137 |
gr.HTML("")
|
138 |
with gr.Tab('6 Models'):
|
139 |
with gr.Column(scale=2):
|