Spaces:
Runtime error
Runtime error
upload file visible
Browse files- src/webui.py +2 -2
src/webui.py
CHANGED
@@ -221,11 +221,11 @@ if __name__ == '__main__':
|
|
221 |
model_name = gr.Text(label='Voice Model Name', info='Enter the name of the voice model', value='kobo')
|
222 |
# 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')
|
223 |
|
224 |
-
with gr.Column() as yt_link_col:
|
225 |
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. Youtube Banned Huggingface IP, use File Upload instead', value='https://youtu.be/FRh7LvlQTuA')
|
226 |
show_file_upload_button = gr.Button('Upload file instead')
|
227 |
|
228 |
-
with gr.Column(visible=
|
229 |
local_file = gr.File(label='Audio file')
|
230 |
song_input_file = gr.UploadButton('Upload 📂', file_types=['audio'], variant='primary')
|
231 |
show_yt_link_button = gr.Button('Paste YouTube link/Path to local file instead')
|
|
|
221 |
model_name = gr.Text(label='Voice Model Name', info='Enter the name of the voice model', value='kobo')
|
222 |
# 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')
|
223 |
|
224 |
+
with gr.Column(visible=False) as yt_link_col:
|
225 |
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. Youtube Banned Huggingface IP, use File Upload instead', value='https://youtu.be/FRh7LvlQTuA')
|
226 |
show_file_upload_button = gr.Button('Upload file instead')
|
227 |
|
228 |
+
with gr.Column(visible=True) as file_upload_col:
|
229 |
local_file = gr.File(label='Audio file')
|
230 |
song_input_file = gr.UploadButton('Upload 📂', file_types=['audio'], variant='primary')
|
231 |
show_yt_link_button = gr.Button('Paste YouTube link/Path to local file instead')
|