Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -226,6 +226,14 @@ button.svelte-1lcyrx4[aria-label="user's message: a file of type image/jpeg, "]
|
|
| 226 |
}
|
| 227 |
"""
|
| 228 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 229 |
|
| 230 |
demo = gr.ChatInterface(
|
| 231 |
fn=chat,
|
|
@@ -237,6 +245,7 @@ demo = gr.ChatInterface(
|
|
| 237 |
title="❄️ Vintern-1B-v3.5 Demo ❄️",
|
| 238 |
multimodal=True,
|
| 239 |
css=CSS,
|
|
|
|
| 240 |
theme='NoCrypt/miku'
|
| 241 |
)
|
| 242 |
demo.queue().launch()
|
|
|
|
| 226 |
}
|
| 227 |
"""
|
| 228 |
|
| 229 |
+
js = """function refresh() {
|
| 230 |
+
const url = new URL(window.location);
|
| 231 |
+
|
| 232 |
+
if (url.searchParams.get('__theme') !== 'light') {
|
| 233 |
+
url.searchParams.set('__theme', 'light');
|
| 234 |
+
window.location.href = url.href;
|
| 235 |
+
}
|
| 236 |
+
}"""
|
| 237 |
|
| 238 |
demo = gr.ChatInterface(
|
| 239 |
fn=chat,
|
|
|
|
| 245 |
title="❄️ Vintern-1B-v3.5 Demo ❄️",
|
| 246 |
multimodal=True,
|
| 247 |
css=CSS,
|
| 248 |
+
js=js,
|
| 249 |
theme='NoCrypt/miku'
|
| 250 |
)
|
| 251 |
demo.queue().launch()
|