juancopi81 commited on
Commit
f91cb29
1 Parent(s): 9875faf

Change preview button

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -111,7 +111,8 @@ with demo:
111
  start_second = gr.Number(label="Select starting point (in seconds) for the transcription",
112
  value=0,
113
  precision=0)
114
- preview_btn = gr.Button("Preview")
 
115
  with gr.Row().style(mobile_collapse=False, equal_height=True):
116
  title = gr.Label(label="Video Title", placeholder="Title")
117
  img = gr.Image(label="Thumbnail")
@@ -119,10 +120,9 @@ with demo:
119
  yt_audio = gr.Audio()
120
  yt_audio_path = gr.Textbox(visible=False)
121
 
122
- with gr.Row():
123
- preview_btn.click(fn=populate_metadata,
124
- inputs=[link, start_second],
125
- outputs=[img, title, yt_audio, yt_audio_path])
126
 
127
  with gr.Row():
128
  btn = gr.Button("Transcribe music")
 
111
  start_second = gr.Number(label="Select starting point (in seconds) for the transcription",
112
  value=0,
113
  precision=0)
114
+ with gr.Row():
115
+ preview_btn = gr.Button("Preview")
116
  with gr.Row().style(mobile_collapse=False, equal_height=True):
117
  title = gr.Label(label="Video Title", placeholder="Title")
118
  img = gr.Image(label="Thumbnail")
 
120
  yt_audio = gr.Audio()
121
  yt_audio_path = gr.Textbox(visible=False)
122
 
123
+ preview_btn.click(fn=populate_metadata,
124
+ inputs=[link, start_second],
125
+ outputs=[img, title, yt_audio, yt_audio_path])
 
126
 
127
  with gr.Row():
128
  btn = gr.Button("Transcribe music")