Spaces:
Paused
Paused
Update src/webui.py
Browse files- src/webui.py +4 -6
src/webui.py
CHANGED
|
@@ -166,7 +166,7 @@ if __name__ == '__main__':
|
|
| 166 |
with open(os.path.join(rvc_models_dir, 'public_models.json'), encoding='utf8') as infile:
|
| 167 |
public_models = json.load(infile)
|
| 168 |
|
| 169 |
-
with gr.Blocks(title='
|
| 170 |
|
| 171 |
gr.Label('CoverGen-RVC HEX MOD WebUI created with ❤️', show_label=False)
|
| 172 |
|
|
@@ -175,8 +175,8 @@ if __name__ == '__main__':
|
|
| 175 |
with gr.Tabs():
|
| 176 |
rvc_model = gr.Dropdown(voice_models, label='Voice Models', info='Models folder "AICoverGen --> rvc_models". After new models are added into this folder, click the refresh button')
|
| 177 |
ref_btn = gr.Button('Refresh Models 🔁', variant='primary')
|
| 178 |
-
|
| 179 |
-
|
| 180 |
with gr.Tab("Inference"):
|
| 181 |
with gr.Row():
|
| 182 |
|
|
@@ -230,8 +230,7 @@ if __name__ == '__main__':
|
|
| 230 |
ai_cover = gr.Audio(label='AI Cover', show_share_button=False)
|
| 231 |
|
| 232 |
|
| 233 |
-
|
| 234 |
-
|
| 235 |
ref_btn.click(update_models_list, None, outputs=rvc_model)
|
| 236 |
is_webui = gr.Number(value=1, visible=False)
|
| 237 |
generate_btn.click(song_cover_pipeline,
|
|
@@ -319,7 +318,6 @@ if __name__ == '__main__':
|
|
| 319 |
|
| 320 |
app.launch(
|
| 321 |
share=args.share_enabled,
|
| 322 |
-
enable_queue=True,
|
| 323 |
server_name=None if not args.listen else (args.listen_host or '0.0.0.0'),
|
| 324 |
server_port=args.listen_port,
|
| 325 |
)
|
|
|
|
| 166 |
with open(os.path.join(rvc_models_dir, 'public_models.json'), encoding='utf8') as infile:
|
| 167 |
public_models = json.load(infile)
|
| 168 |
|
| 169 |
+
with gr.Blocks(title='CoverGen-RVC', theme="nevreal/orange") as app:
|
| 170 |
|
| 171 |
gr.Label('CoverGen-RVC HEX MOD WebUI created with ❤️', show_label=False)
|
| 172 |
|
|
|
|
| 175 |
with gr.Tabs():
|
| 176 |
rvc_model = gr.Dropdown(voice_models, label='Voice Models', info='Models folder "AICoverGen --> rvc_models". After new models are added into this folder, click the refresh button')
|
| 177 |
ref_btn = gr.Button('Refresh Models 🔁', variant='primary')
|
| 178 |
+
clear_btn = gr.ClearButton(value='Clear Settings', components=[song_input, rvc_model, keep_files, local_file])
|
| 179 |
+
|
| 180 |
with gr.Tab("Inference"):
|
| 181 |
with gr.Row():
|
| 182 |
|
|
|
|
| 230 |
ai_cover = gr.Audio(label='AI Cover', show_share_button=False)
|
| 231 |
|
| 232 |
|
| 233 |
+
|
|
|
|
| 234 |
ref_btn.click(update_models_list, None, outputs=rvc_model)
|
| 235 |
is_webui = gr.Number(value=1, visible=False)
|
| 236 |
generate_btn.click(song_cover_pipeline,
|
|
|
|
| 318 |
|
| 319 |
app.launch(
|
| 320 |
share=args.share_enabled,
|
|
|
|
| 321 |
server_name=None if not args.listen else (args.listen_host or '0.0.0.0'),
|
| 322 |
server_port=args.listen_port,
|
| 323 |
)
|