Spaces:
Runtime error
Runtime error
XXXXRT666
commited on
Commit
Β·
9806e04
1
Parent(s):
d76f0a1
- inference_webui.py +17 -1
inference_webui.py
CHANGED
@@ -69,6 +69,7 @@ import gradio as gr
|
|
69 |
import gradio.themes as themes
|
70 |
import librosa
|
71 |
import numpy as np
|
|
|
72 |
from transformers import AutoModelForMaskedLM, AutoTokenizer
|
73 |
|
74 |
from feature_extractor import cnhubert
|
@@ -742,7 +743,22 @@ def html_left(text, label="p"):
|
|
742 |
</div>"""
|
743 |
|
744 |
|
745 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
746 |
gr.Markdown(
|
747 |
value="""# GPT-SoVITS-ProPlus Zero-shot TTS demo
|
748 |
## https://github.com/RVC-Boss/GPT-SoVITS
|
|
|
69 |
import gradio.themes as themes
|
70 |
import librosa
|
71 |
import numpy as np
|
72 |
+
from gradio.themes.utils import fonts
|
73 |
from transformers import AutoModelForMaskedLM, AutoTokenizer
|
74 |
|
75 |
from feature_extractor import cnhubert
|
|
|
743 |
</div>"""
|
744 |
|
745 |
|
746 |
+
theme = themes.Soft(
|
747 |
+
font=(
|
748 |
+
"-apple-system",
|
749 |
+
fonts.GoogleFont("Inter"),
|
750 |
+
fonts.GoogleFont("Quicksand"),
|
751 |
+
"ui-sans-serif",
|
752 |
+
"sans-serif",
|
753 |
+
)
|
754 |
+
)
|
755 |
+
theme.block_border_width = "1px"
|
756 |
+
|
757 |
+
with gr.Blocks(
|
758 |
+
title="GPT-SoVITS WebUI",
|
759 |
+
theme=theme,
|
760 |
+
analytics_enabled=False,
|
761 |
+
) as app:
|
762 |
gr.Markdown(
|
763 |
value="""# GPT-SoVITS-ProPlus Zero-shot TTS demo
|
764 |
## https://github.com/RVC-Boss/GPT-SoVITS
|