susnato commited on
Commit
36b4085
1 Parent(s): 3ca99f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -86,13 +86,13 @@ with block:
86
  """
87
  )
88
  with gr.Group():
89
- with gr.Row().style(mobile_collapse=False, equal_height=True):
90
- file_uploaded = gr.Audio(label="Upload an audio", type="filepath")
91
-
92
  with gr.Column():
93
  with gr.Row():
94
- yt_link = gr.Textbox(label="Enter YouTube link of the Video", autofocus=True)
95
- yt_btn = gr.Button("Get Audio from the YT link(Press this before pressing Generate)")
96
 
97
  yt_audio_path = gr.Audio(label="Audio Extracted from the YouTube Video", interactive=False)
98
  yt_btn.click(get_audio_from_yt_video, inputs=[yt_link], outputs=[yt_audio_path, file_uploaded])
@@ -133,7 +133,7 @@ with block:
133
  """
134
  <div class="footer">
135
  <center><p><a href="http://sweetcocoa.github.io/pop2piano_samples" style="text-decoration: underline;" target="_blank">Project Page</a>
136
- <center><a href="https://huggingface.co/docs/transformers/main/model_doc/pop2piano" style="text-decoration: underline;" target="_blank">HuggingFace Doc</a>
137
  <center><a href="http://sweetcocoa.github.io/pop2piano_samples" style="text-decoration: underline;" target="_blank">Github</a>
138
 
139
 
 
86
  """
87
  )
88
  with gr.Group():
89
+ with gr.Row(equal_height=True):
90
+ with gr.Column():
91
+ file_uploaded = gr.Audio(label="Upload an audio", type="filepath")
92
  with gr.Column():
93
  with gr.Row():
94
+ yt_link = gr.Textbox(label="Enter YouTube link of the Video", autofocus=True, lines=3)
95
+ yt_btn = gr.Button("Get Audio from the YT link(Press this before pressing Generate)", size="lg")
96
 
97
  yt_audio_path = gr.Audio(label="Audio Extracted from the YouTube Video", interactive=False)
98
  yt_btn.click(get_audio_from_yt_video, inputs=[yt_link], outputs=[yt_audio_path, file_uploaded])
 
133
  """
134
  <div class="footer">
135
  <center><p><a href="http://sweetcocoa.github.io/pop2piano_samples" style="text-decoration: underline;" target="_blank">Project Page</a>
136
+ <center><a href="https://huggingface.co/docs/transformers/main/model_doc/pop2piano" style="text-decoration: underline;" target="_blank">HuggingFace Model Card</a>
137
  <center><a href="http://sweetcocoa.github.io/pop2piano_samples" style="text-decoration: underline;" target="_blank">Github</a>
138
 
139