jerrypan7 commited on
Commit
752e757
Β·
verified Β·
1 Parent(s): c88b6d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -11
app.py CHANGED
@@ -158,17 +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
- """
162
- run_button.click(
163
- fn=lambda: '', # This lambda function sets the output to empty
164
- inputs=None,
165
- outputs=result
166
- ).then(
167
- run_asr,
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))),
 
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
  # Update video player, clear transcription and audio input, and enable run button when YouTube URL is entered
163
  youtube_input.change(
164
  fn=lambda url: (*embed_youtube(url), gr.update(interactive=bool(url))),