Kit-Lemonfoot
commited on
Commit
β’
be41f72
1
Parent(s):
e0f8b6d
attempt 1 at fixing dumb fileop stuff
Browse files
GPT_SoVITS/inference_webui.py
CHANGED
@@ -597,8 +597,8 @@ def load_models():
|
|
597 |
if not info['enable']:
|
598 |
continue
|
599 |
title= info['title']
|
600 |
-
gptmodelpath= info['gpt_model_path']
|
601 |
-
sovitsmodelpath= info['sovits_model_path']
|
602 |
author= info['modelauthor']
|
603 |
image = info['cover']
|
604 |
styles = info['styles']
|
@@ -638,8 +638,8 @@ with gr.Blocks(title="Lemonfoot GPT-SoVITS") as app:
|
|
638 |
with gr.Row():
|
639 |
with gr.Column():
|
640 |
n = gr.Textbox(value=name, visible=False, interactive=False)
|
641 |
-
gptmp = gr.Textbox(value=
|
642 |
-
svmp = gr.Textbox(value=
|
643 |
gr.Markdown(f"**{title}**\n\n Dataset author: {author}")
|
644 |
gr.Image(f"images/{image}", label=None, show_label=False, width=300, show_download_button=False, container=False, show_share_button=False)
|
645 |
with gr.Column():
|
@@ -657,7 +657,7 @@ with gr.Blocks(title="Lemonfoot GPT-SoVITS") as app:
|
|
657 |
prompt_text = gr.Textbox(label="Reference Audio Text", interactive=True)
|
658 |
prompt_language = gr.Textbox(value="EN", visible=False, interactive=False)
|
659 |
with gr.Column():
|
660 |
-
inference_button = gr.Button("
|
661 |
output = gr.Audio(label="Output")
|
662 |
|
663 |
inference_button.click(
|
|
|
597 |
if not info['enable']:
|
598 |
continue
|
599 |
title= info['title']
|
600 |
+
gptmodelpath= "%s/%s" % (GPT_weight_root, info['gpt_model_path'])
|
601 |
+
sovitsmodelpath= "%s/%s" % (SoVITS_weight_root, info['sovits_model_path'])
|
602 |
author= info['modelauthor']
|
603 |
image = info['cover']
|
604 |
styles = info['styles']
|
|
|
638 |
with gr.Row():
|
639 |
with gr.Column():
|
640 |
n = gr.Textbox(value=name, visible=False, interactive=False)
|
641 |
+
gptmp = gr.Textbox(value=gptmodelpath, visible=False, interactive=False)
|
642 |
+
svmp = gr.Textbox(value=sovitsmodelpath, visible=False, interactive=False)
|
643 |
gr.Markdown(f"**{title}**\n\n Dataset author: {author}")
|
644 |
gr.Image(f"images/{image}", label=None, show_label=False, width=300, show_download_button=False, container=False, show_share_button=False)
|
645 |
with gr.Column():
|
|
|
657 |
prompt_text = gr.Textbox(label="Reference Audio Text", interactive=True)
|
658 |
prompt_language = gr.Textbox(value="EN", visible=False, interactive=False)
|
659 |
with gr.Column():
|
660 |
+
inference_button = gr.Button("Synthesize", variant="primary")
|
661 |
output = gr.Audio(label="Output")
|
662 |
|
663 |
inference_button.click(
|