Update app.py
Browse files
app.py
CHANGED
@@ -125,6 +125,16 @@ 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 |
with gr.Tab('6 Models'):
|
130 |
with gr.Column(scale=2):
|
|
|
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 |
+
<script>
|
130 |
+
const url = new URL(window.location);
|
131 |
+
|
132 |
+
if (url.searchParams.get('__theme') !== 'dark') {
|
133 |
+
url.searchParams.set('__theme', 'dark');
|
134 |
+
window.location.href = url.href;
|
135 |
+
}
|
136 |
+
</script>
|
137 |
+
|
138 |
)
|
139 |
with gr.Tab('6 Models'):
|
140 |
with gr.Column(scale=2):
|