Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -134,18 +134,6 @@ vc = VC(config)
|
|
134 |
|
135 |
import gradio as gr
|
136 |
|
137 |
-
# Force Enable Dark Mode
|
138 |
-
js_func = """
|
139 |
-
function refresh() {
|
140 |
-
const url = new URL(window.location);
|
141 |
-
|
142 |
-
if (url.searchParams.get('__theme') !== 'dark') {
|
143 |
-
url.searchParams.set('__theme', 'dark');
|
144 |
-
window.location.href = url.href;
|
145 |
-
}
|
146 |
-
}
|
147 |
-
"""
|
148 |
-
|
149 |
with gr.Blocks(js=js_func) as demo:
|
150 |
demo.launch()
|
151 |
|
@@ -641,7 +629,7 @@ def GradioSetup(UTheme=gr.themes.Soft()):
|
|
641 |
|
642 |
default_weight = names[0] if names else ''
|
643 |
|
644 |
-
with gr.Blocks(title="oItsMinez's RVC v2 WebUI",
|
645 |
gr.Label('oItsMineZ\'s RVC v2 WebUI', show_label=False)
|
646 |
gr.Markdown(
|
647 |
"<div align='center'>\n\n"+
|
|
|
134 |
|
135 |
import gradio as gr
|
136 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
with gr.Blocks(js=js_func) as demo:
|
138 |
demo.launch()
|
139 |
|
|
|
629 |
|
630 |
default_weight = names[0] if names else ''
|
631 |
|
632 |
+
with gr.Blocks(title="oItsMinez's RVC v2 WebUI", theme=gr.themes.Base(font=[gr.themes.GoogleFont("Noto Sans Thai"), "sans-serif"])) as app:
|
633 |
gr.Label('oItsMineZ\'s RVC v2 WebUI', show_label=False)
|
634 |
gr.Markdown(
|
635 |
"<div align='center'>\n\n"+
|