Skip to content

Commit 1bc052f

Browse files
author
NeoDev
authored
Update app.py
1 parent c6ae35b commit 1bc052f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

app.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
DEFAULT_SERVER_NAME = "127.0.0.1"
77
DEFAULT_PORT = 6969
88
MAX_PORT_ATTEMPTS = 10
9-
9+
import assets.themes.loadThemes as loadThemes
1010
# Set up logging
1111
logging.getLogger("uvicorn").setLevel(logging.WARNING)
1212
logging.getLogger("httpx").setLevel(logging.WARNING)
@@ -28,14 +28,11 @@
2828

2929

3030

31-
# Load theme (demo)
32-
#import assets.themes.loadThemes as loadThemes
33-
# loadThemes.load_theme()
34-
my_theme = "NoCrypt/miku"
31+
3532

3633
# Define Gradio interface
3734
with gr.Blocks(
38-
theme=my_theme, title="Advanced-RVC-Inference", css="footer{display:none !important}"
35+
theme = loadThemes.load_json() or "NoCrypt/miku", title="Advanced-RVC-Inference", css="footer{display:none !important}"
3936
) as adrvc:
4037
gr.Markdown("# Advanced-RVC-Inference")
4138
gr.Markdown("Advanced RVC Inference for quicker and effortless model downloads.")

0 commit comments

Comments
 (0)