jhtonyKoo commited on
Commit
7295413
1 Parent(s): 9e76a90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -83,14 +83,14 @@ with gr.Blocks() as demo:
83
  yt_link_in = gr.Textbox(
84
  label="Enter YouTube Link of the Video", autofocus=True, lines=3
85
  )
86
- yt_btn = gr.Button("Download Audio from YouTube Link", size="lg")
87
- yt_audio_path = gr.Audio(
88
  label="Input Audio Extracted from the YouTube Video", interactive=False
89
  )
90
- yt_btn.click(
91
  get_audio_from_yt_video,
92
  inputs=[yt_link_in],
93
- outputs=[yt_audio_path, file_uploaded_in],
94
  )
95
  with gr.Blocks():
96
  with gr.Tab("Reference Music"):
@@ -100,14 +100,14 @@ with gr.Blocks() as demo:
100
  yt_link_ref = gr.Textbox(
101
  label="Enter YouTube Link of the Video", autofocus=True, lines=3
102
  )
103
- yt_btn = gr.Button("Download Audio from YouTube Link", size="lg")
104
- yt_audio_path = gr.Audio(
105
  label="Reference Audio Extracted from the YouTube Video", interactive=False
106
  )
107
- yt_btn.click(
108
  get_audio_from_yt_video,
109
  inputs=[yt_link_ref],
110
- outputs=[yt_audio_path, file_uploaded_ref],
111
  )
112
  with gr.Column():
113
  inference_btn = gr.Button("Perform Style Transfer")
 
83
  yt_link_in = gr.Textbox(
84
  label="Enter YouTube Link of the Video", autofocus=True, lines=3
85
  )
86
+ yt_btn_in = gr.Button("Download Audio from YouTube Link", size="lg")
87
+ yt_audio_path_in = gr.Audio(
88
  label="Input Audio Extracted from the YouTube Video", interactive=False
89
  )
90
+ yt_btn_in.click(
91
  get_audio_from_yt_video,
92
  inputs=[yt_link_in],
93
+ outputs=[yt_audio_path_in, file_uploaded_in],
94
  )
95
  with gr.Blocks():
96
  with gr.Tab("Reference Music"):
 
100
  yt_link_ref = gr.Textbox(
101
  label="Enter YouTube Link of the Video", autofocus=True, lines=3
102
  )
103
+ yt_btn_ref = gr.Button("Download Audio from YouTube Link", size="lg")
104
+ yt_audio_path_ref = gr.Audio(
105
  label="Reference Audio Extracted from the YouTube Video", interactive=False
106
  )
107
+ yt_btn_ref.click(
108
  get_audio_from_yt_video,
109
  inputs=[yt_link_ref],
110
+ outputs=[yt_audio_path_ref, file_uploaded_ref],
111
  )
112
  with gr.Column():
113
  inference_btn = gr.Button("Perform Style Transfer")