Update app.py
Browse files
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))),
|