Spaces:
Runtime error
Runtime error
Disabel yt download
Browse files
app.py
CHANGED
@@ -337,7 +337,7 @@ with gr.Blocks(css=css) as demo:
|
|
337 |
|
338 |
audio_input = gr.Audio(label="Music input", type="filepath", source="upload")
|
339 |
with gr.Row():
|
340 |
-
youtube_link = gr.Textbox(show_label=False, placeholder="you can also paste YT link and load it", interactive=False)
|
341 |
yt_load_btn = gr.Button("Load YT song", interactive=False)
|
342 |
|
343 |
with gr.Row():
|
@@ -398,7 +398,7 @@ with gr.Blocks(css=css) as demo:
|
|
398 |
""")
|
399 |
|
400 |
#infer_btn.click(fn=infer, inputs=[audio_input], outputs=[lpmc_cap, llama_trans_cap, img_result])
|
401 |
-
yt_load_btn.click(fn=load_youtube_audio, inputs=[youtube_link], outputs=[audio_input], queue=False)
|
402 |
infer_btn.click(fn=infer, inputs=[audio_input, has_lyrics], outputs=[processed_audio, img_result, llama_trans_cap, tryagain_btn, share_group])
|
403 |
share_button.click(None, [], [], _js=share_js)
|
404 |
tryagain_btn.click(fn=solo_xd, inputs=[llama_trans_cap], outputs=[img_result])
|
|
|
337 |
|
338 |
audio_input = gr.Audio(label="Music input", type="filepath", source="upload")
|
339 |
with gr.Row():
|
340 |
+
youtube_link = gr.Textbox(show_label=False, placeholder="TEMPORARILY DISABLED • you can also paste YT link and load it", interactive=False)
|
341 |
yt_load_btn = gr.Button("Load YT song", interactive=False)
|
342 |
|
343 |
with gr.Row():
|
|
|
398 |
""")
|
399 |
|
400 |
#infer_btn.click(fn=infer, inputs=[audio_input], outputs=[lpmc_cap, llama_trans_cap, img_result])
|
401 |
+
yt_load_btn.click(fn=load_youtube_audio, inputs=[youtube_link], outputs=[audio_input], queue=False, show_api=False)
|
402 |
infer_btn.click(fn=infer, inputs=[audio_input, has_lyrics], outputs=[processed_audio, img_result, llama_trans_cap, tryagain_btn, share_group])
|
403 |
share_button.click(None, [], [], _js=share_js)
|
404 |
tryagain_btn.click(fn=solo_xd, inputs=[llama_trans_cap], outputs=[img_result])
|