Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -110,13 +110,19 @@ with gr.Blocks() as demo:
|
|
| 110 |
yt_link_in = gr.Textbox(
|
| 111 |
label="Enter YouTube Link of the Video", autofocus=True, lines=3
|
| 112 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
yt_btn_in = gr.Button("Download Audio from YouTube Link", size="lg")
|
| 114 |
yt_audio_path_in = gr.Audio(
|
| 115 |
label="Input Audio Extracted from the YouTube Video", interactive=False
|
| 116 |
)
|
| 117 |
yt_btn_in.click(
|
| 118 |
get_audio_from_yt_video_input,
|
| 119 |
-
inputs=[yt_link_in],
|
| 120 |
outputs=[yt_audio_path_in, file_uploaded_in],
|
| 121 |
)
|
| 122 |
with gr.Blocks():
|
|
@@ -127,20 +133,26 @@ with gr.Blocks() as demo:
|
|
| 127 |
yt_link_ref = gr.Textbox(
|
| 128 |
label="Enter YouTube Link of the Video", autofocus=True, lines=3
|
| 129 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 130 |
yt_btn_ref = gr.Button("Download Audio from YouTube Link", size="lg")
|
| 131 |
yt_audio_path_ref = gr.Audio(
|
| 132 |
label="Reference Audio Extracted from the YouTube Video", interactive=False
|
| 133 |
)
|
| 134 |
yt_btn_ref.click(
|
| 135 |
get_audio_from_yt_video_ref,
|
| 136 |
-
inputs=[yt_link_ref],
|
| 137 |
outputs=[yt_audio_path_ref, file_uploaded_ref],
|
| 138 |
)
|
| 139 |
|
| 140 |
with gr.Group():
|
| 141 |
gr.HTML(
|
| 142 |
"""
|
| 143 |
-
<div> <h3> <center> Mixing Style Transfer. Perform stem-wise audio-effects style conversion by first source separating the input mix.
|
| 144 |
"""
|
| 145 |
)
|
| 146 |
with gr.Column():
|
|
|
|
| 110 |
yt_link_in = gr.Textbox(
|
| 111 |
label="Enter YouTube Link of the Video", autofocus=True, lines=3
|
| 112 |
)
|
| 113 |
+
yt_in_start_sec = gr.Number(
|
| 114 |
+
value=0
|
| 115 |
+
)
|
| 116 |
+
yt_in_duration_sec = gr.Number(
|
| 117 |
+
value=30
|
| 118 |
+
)
|
| 119 |
yt_btn_in = gr.Button("Download Audio from YouTube Link", size="lg")
|
| 120 |
yt_audio_path_in = gr.Audio(
|
| 121 |
label="Input Audio Extracted from the YouTube Video", interactive=False
|
| 122 |
)
|
| 123 |
yt_btn_in.click(
|
| 124 |
get_audio_from_yt_video_input,
|
| 125 |
+
inputs=[yt_link_in, yt_in_start_sec, yt_in_duration_sec],
|
| 126 |
outputs=[yt_audio_path_in, file_uploaded_in],
|
| 127 |
)
|
| 128 |
with gr.Blocks():
|
|
|
|
| 133 |
yt_link_ref = gr.Textbox(
|
| 134 |
label="Enter YouTube Link of the Video", autofocus=True, lines=3
|
| 135 |
)
|
| 136 |
+
yt_ref_start_sec = gr.Number(
|
| 137 |
+
value=0
|
| 138 |
+
)
|
| 139 |
+
yt_ref_duration_sec = gr.Number(
|
| 140 |
+
value=30
|
| 141 |
+
)
|
| 142 |
yt_btn_ref = gr.Button("Download Audio from YouTube Link", size="lg")
|
| 143 |
yt_audio_path_ref = gr.Audio(
|
| 144 |
label="Reference Audio Extracted from the YouTube Video", interactive=False
|
| 145 |
)
|
| 146 |
yt_btn_ref.click(
|
| 147 |
get_audio_from_yt_video_ref,
|
| 148 |
+
inputs=[yt_link_ref, yt_ref_start_sec, yt_ref_duration_sec],
|
| 149 |
outputs=[yt_audio_path_ref, file_uploaded_ref],
|
| 150 |
)
|
| 151 |
|
| 152 |
with gr.Group():
|
| 153 |
gr.HTML(
|
| 154 |
"""
|
| 155 |
+
<div> <h3> <center> Mixing Style Transfer. Perform stem-wise audio-effects style conversion by first source separating the input mix. The inference computation time takes longer as the input samples' duration. so plz be patient... </h3> </div>
|
| 156 |
"""
|
| 157 |
)
|
| 158 |
with gr.Column():
|