fffiloni commited on
Commit
17cf4cc
1 Parent(s): 579e225

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -158,7 +158,7 @@ with gr.Blocks(css=css) as demo:
158
  with gr.Column():
159
  uploaded_sound = gr.Audio(type="numpy", label="Input", source="upload")
160
  with gr.Row():
161
- youtube_link = gr.Textbox(show_label=False, placeholder="you can also paste YT link and load it", interactive=False)
162
  yt_load_btn = gr.Button("Load YT song", interactive=False)
163
 
164
  with gr.Row():
@@ -223,7 +223,7 @@ with gr.Blocks(css=css) as demo:
223
  inputs=[music_prompt, melody, duration, cfg_coef],
224
  outputs=[output]
225
  )
226
- yt_load_btn.click(fn=load_youtube_audio, inputs=[youtube_link], outputs=[uploaded_sound], queue=False)
227
  load_sound_btn.click(split_process, inputs=[uploaded_sound, chosen_track], outputs=[melody], api_name="splt_trck")
228
  submit.click(predict, inputs=[music_prompt, melody, duration, cfg_coef], outputs=[output])
229
 
 
158
  with gr.Column():
159
  uploaded_sound = gr.Audio(type="numpy", label="Input", source="upload")
160
  with gr.Row():
161
+ youtube_link = gr.Textbox(show_label=False, placeholder="TEMPORARILY DISABLED • you can also paste YT link and load it", interactive=False)
162
  yt_load_btn = gr.Button("Load YT song", interactive=False)
163
 
164
  with gr.Row():
 
223
  inputs=[music_prompt, melody, duration, cfg_coef],
224
  outputs=[output]
225
  )
226
+ yt_load_btn.click(fn=load_youtube_audio, inputs=[youtube_link], outputs=[uploaded_sound], queue=False, api_name=False)
227
  load_sound_btn.click(split_process, inputs=[uploaded_sound, chosen_track], outputs=[melody], api_name="splt_trck")
228
  submit.click(predict, inputs=[music_prompt, melody, duration, cfg_coef], outputs=[output])
229