Spaces:
Paused
Paused
P01yH3dr0n
commited on
Commit
•
633aa16
1
Parent(s):
9e64d02
Update app.py
Browse files
app.py
CHANGED
@@ -168,7 +168,7 @@ def load_javascript():
|
|
168 |
|
169 |
def ui():
|
170 |
load_javascript()
|
171 |
-
with gr.Blocks(title="NAI Client", theme=gr.themes.Base()) as website:
|
172 |
with gr.Tabs():
|
173 |
with gr.TabItem("图片生成", elem_id="client_ui_main"):
|
174 |
_, paras = main_ui()
|
|
|
168 |
|
169 |
def ui():
|
170 |
load_javascript()
|
171 |
+
with gr.Blocks(title="NAI Client", theme=gr.themes.Base(), js="() => {document.body.classList.toggle('dark');}") as website:
|
172 |
with gr.Tabs():
|
173 |
with gr.TabItem("图片生成", elem_id="client_ui_main"):
|
174 |
_, paras = main_ui()
|