Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -87,38 +87,4 @@ if __name__ == '__main__':
|
|
87 |
"## <center> The input audio should be clean and pure voice without background music.\n"
|
88 |
"[](https://github.com/svc-develop-team/so-vits-svc)"
|
89 |
)
|
90 |
-
|
91 |
-
for (name, cover, vc_fn) in models:
|
92 |
-
with gr.TabItem(name):
|
93 |
-
with gr.Row():
|
94 |
-
gr.Markdown(
|
95 |
-
'<div align="center">'
|
96 |
-
f'<img style="width:auto;height:300px;" src="file/{cover}">' if cover else ""
|
97 |
-
'</div>'
|
98 |
-
)
|
99 |
-
with gr.Row():
|
100 |
-
with gr.Column():
|
101 |
-
vc_input = gr.Audio(label="Input audio"+' (less than 20 seconds)' if limitation else '')
|
102 |
-
vc_transform = gr.Number(label="vc_transform", value=0)
|
103 |
-
auto_f0 = gr.Checkbox(label="auto_f0", value=False)
|
104 |
-
tts_mode = gr.Checkbox(label="tts (use edge-tts as input)", value=False)
|
105 |
-
tts_text = gr.Textbox(visible=False, label="TTS text (100 words limitation)" if limitation else "TTS text")
|
106 |
-
tts_voice = gr.Dropdown(choices=voices, visible=False)
|
107 |
-
vc_submit = gr.Button("Generate", variant="primary")
|
108 |
-
with gr.Column():
|
109 |
-
vc_output1 = gr.Textbox(label="Output Message")
|
110 |
-
vc_output2 = gr.Audio(label="Output Audio")
|
111 |
-
vc_submit.click(vc_fn, [vc_input, vc_transform, auto_f0, tts_text, tts_voice, tts_mode], [vc_output1, vc_output2])
|
112 |
-
for category, link in others.items():
|
113 |
-
with gr.TabItem(category):
|
114 |
-
gr.Markdown(
|
115 |
-
f'''
|
116 |
-
<center>
|
117 |
-
<h2>Click to Go</h2>
|
118 |
-
<a href="{link}">
|
119 |
-
<img src="https://huggingface.co/datasets/huggingface/badges/raw/main/open-in-hf-spaces-xl-dark.svg"
|
120 |
-
</a>
|
121 |
-
</center>
|
122 |
-
'''
|
123 |
-
)
|
124 |
-
app.queue(concurrency_count=1, api_open=args.api).launch(share=args.share)
|
|
|
87 |
"## <center> The input audio should be clean and pure voice without background music.\n"
|
88 |
"[](https://github.com/svc-develop-team/so-vits-svc)"
|
89 |
)
|
90 |
+
app.queue(concurrency_count=1, api_open=args.api).launch(share=args.share)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|