jerrypan7 commited on
Commit
f833145
Β·
verified Β·
1 Parent(s): c5ce877

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -158,6 +158,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
158
 
159
  run_button = gr.Button("πŸš€ Transcribe Audio", variant="primary", interactive=False)
160
  #run_button.click(run_asr, inputs=[audio_input, youtube_input], outputs=[result])
 
161
  run_button.click(
162
  fn=lambda: '', # This lambda function sets the output to empty
163
  inputs=None,
@@ -167,6 +168,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
167
  inputs=[audio_input, youtube_input],
168
  outputs=result
169
  )
 
170
  # Update video player, clear transcription and audio input, and enable run button when YouTube URL is entered
171
  youtube_input.change(
172
  fn=lambda url: (*embed_youtube(url), gr.update(interactive=bool(url))),
 
158
 
159
  run_button = gr.Button("πŸš€ Transcribe Audio", variant="primary", interactive=False)
160
  #run_button.click(run_asr, inputs=[audio_input, youtube_input], outputs=[result])
161
+ """
162
  run_button.click(
163
  fn=lambda: '', # This lambda function sets the output to empty
164
  inputs=None,
 
168
  inputs=[audio_input, youtube_input],
169
  outputs=result
170
  )
171
+ """
172
  # Update video player, clear transcription and audio input, and enable run button when YouTube URL is entered
173
  youtube_input.change(
174
  fn=lambda url: (*embed_youtube(url), gr.update(interactive=bool(url))),