Update app.py
Browse files
app.py
CHANGED
@@ -125,17 +125,15 @@ CSS="""
|
|
125 |
# with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
|
126 |
with gr.Blocks(theme='JohnSmith9982/small_and_pretty', fill_width=True, css=CSS) as demo:
|
127 |
gr.HTML(
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
)
|
139 |
with gr.Tab('6 Models'):
|
140 |
with gr.Column(scale=2):
|
141 |
with gr.Group():
|
@@ -230,16 +228,5 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty', fill_width=True, css=CSS)
|
|
230 |
o.change(add_gallery, [o, model_choice2, gallery2], [gallery2])
|
231 |
#stop_button2.click(lambda: gr.update(interactive=False), None, stop_button2, cancels=[gen_event2])
|
232 |
|
233 |
-
makeItDark = """
|
234 |
-
function refresh() {
|
235 |
-
const url = new URL(window.location);
|
236 |
-
|
237 |
-
if (url.searchParams.get('__theme') !== 'dark') {
|
238 |
-
url.searchParams.set('__theme', 'dark');
|
239 |
-
window.location.href = url.href;
|
240 |
-
}
|
241 |
-
}
|
242 |
-
"""
|
243 |
-
|
244 |
#demo.queue(default_concurrency_limit=200, max_size=200)
|
245 |
demo.launch(show_api=False, max_threads=400)
|
|
|
125 |
# with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
|
126 |
with gr.Blocks(theme='JohnSmith9982/small_and_pretty', fill_width=True, css=CSS) as demo:
|
127 |
gr.HTML(
|
128 |
+
<script>
|
129 |
+
const url = new URL(window.location);
|
130 |
+
|
131 |
+
if (url.searchParams.get('__theme') !== 'dark') {
|
132 |
+
url.searchParams.set('__theme', 'dark');
|
133 |
+
window.location.href = url.href;
|
134 |
+
}
|
135 |
+
</script>
|
136 |
+
)
|
|
|
|
|
137 |
with gr.Tab('6 Models'):
|
138 |
with gr.Column(scale=2):
|
139 |
with gr.Group():
|
|
|
228 |
o.change(add_gallery, [o, model_choice2, gallery2], [gallery2])
|
229 |
#stop_button2.click(lambda: gr.update(interactive=False), None, stop_button2, cancels=[gen_event2])
|
230 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
231 |
#demo.queue(default_concurrency_limit=200, max_size=200)
|
232 |
demo.launch(show_api=False, max_threads=400)
|