Spaces:
Running
Running
Update src/covergen.py
Browse files- src/covergen.py +3 -3
src/covergen.py
CHANGED
@@ -137,10 +137,10 @@ if __name__ == '__main__':
|
|
137 |
show_upload_inst_button = gr.Button('Uploading a file from your device', visible=False)
|
138 |
show_enter_inst_button = gr.Button('Entering the path to the local file')
|
139 |
|
140 |
-
upload_instrumental_audio.upload(process_file_upload, inputs=[upload_instrumental_audio], outputs=[instrumental_audio])
|
141 |
upload_instrumental_audio.upload(update_button_text_inst, outputs=[upload_instrumental_audio])
|
142 |
-
show_upload_inst_button.click(swap_visibility, outputs=[upload_inst_file, enter_local_inst_file,
|
143 |
-
show_enter_inst_button.click(swap_visibility, outputs=[enter_local_inst_file, upload_inst_file,
|
144 |
show_upload_inst_button.click(swap_buttons, outputs=[show_upload_inst_button, show_enter_inst_button])
|
145 |
show_enter_inst_button.click(swap_buttons, outputs=[show_enter_inst_button, show_upload_inst_button])
|
146 |
|
|
|
137 |
show_upload_inst_button = gr.Button('Uploading a file from your device', visible=False)
|
138 |
show_enter_inst_button = gr.Button('Entering the path to the local file')
|
139 |
|
140 |
+
upload_instrumental_audio.upload(process_file_upload, inputs=[upload_instrumental_audio], outputs=[instrumental_input, instrumental_audio])
|
141 |
upload_instrumental_audio.upload(update_button_text_inst, outputs=[upload_instrumental_audio])
|
142 |
+
show_upload_inst_button.click(swap_visibility, outputs=[upload_inst_file, enter_local_inst_file, instrumental_input, instrumental_audio])
|
143 |
+
show_enter_inst_button.click(swap_visibility, outputs=[enter_local_inst_file, upload_inst_file, instrumental_input, instrumental_audio])
|
144 |
show_upload_inst_button.click(swap_buttons, outputs=[show_upload_inst_button, show_enter_inst_button])
|
145 |
show_enter_inst_button.click(swap_buttons, outputs=[show_enter_inst_button, show_upload_inst_button])
|
146 |
|