Spaces:
Running
Running
Update src/webui.py
Browse files- src/webui.py +9 -6
src/webui.py
CHANGED
@@ -172,13 +172,14 @@ if __name__ == '__main__':
|
|
172 |
|
173 |
gr.Markdown("CoverGen-No-UI [](https://colab.research.google.com/github/ardha27/AICoverGen-NoUI-Colab/blob/main/CoverGen_No_UI.ipynb)")
|
174 |
|
175 |
-
|
|
|
|
|
|
|
|
|
176 |
with gr.Tab("Inference"):
|
177 |
with gr.Row():
|
178 |
-
|
179 |
-
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')
|
180 |
-
ref_btn = gr.Button('Refresh Models 🔁', variant='primary')
|
181 |
-
|
182 |
with gr.Column() as yt_link_col:
|
183 |
song_input = gr.Text(label='Song input', info='Link to a song on YouTube or full path to a local file. For file upload, click the button below. Example: https://www.youtube.com/watch?v=M-mtdN6R3bQ')
|
184 |
show_file_upload_button = gr.Button('Upload file instead')
|
@@ -225,10 +226,12 @@ if __name__ == '__main__':
|
|
225 |
output_format = gr.Dropdown(['mp3', 'wav'], value='mp3', label='Output file type', info='mp3: small file size, decent quality. wav: Large file size, best quality')
|
226 |
|
227 |
with gr.Row():
|
228 |
-
clear_btn = gr.ClearButton(value='Clear', components=[song_input, rvc_model, keep_files, local_file])
|
229 |
generate_btn = gr.Button("Generate", variant='primary')
|
230 |
ai_cover = gr.Audio(label='AI Cover', show_share_button=False)
|
231 |
|
|
|
|
|
|
|
232 |
ref_btn.click(update_models_list, None, outputs=rvc_model)
|
233 |
is_webui = gr.Number(value=1, visible=False)
|
234 |
generate_btn.click(song_cover_pipeline,
|
|
|
172 |
|
173 |
gr.Markdown("CoverGen-No-UI [](https://colab.research.google.com/github/ardha27/AICoverGen-NoUI-Colab/blob/main/CoverGen_No_UI.ipynb)")
|
174 |
|
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 |
+
|
|
|
|
|
|
|
183 |
with gr.Column() as yt_link_col:
|
184 |
song_input = gr.Text(label='Song input', info='Link to a song on YouTube or full path to a local file. For file upload, click the button below. Example: https://www.youtube.com/watch?v=M-mtdN6R3bQ')
|
185 |
show_file_upload_button = gr.Button('Upload file instead')
|
|
|
226 |
output_format = gr.Dropdown(['mp3', 'wav'], value='mp3', label='Output file type', info='mp3: small file size, decent quality. wav: Large file size, best quality')
|
227 |
|
228 |
with gr.Row():
|
|
|
229 |
generate_btn = gr.Button("Generate", variant='primary')
|
230 |
ai_cover = gr.Audio(label='AI Cover', show_share_button=False)
|
231 |
|
232 |
+
|
233 |
+
clear_btn = gr.ClearButton(value='Clear', components=[song_input, rvc_model, keep_files, local_file])
|
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,
|