Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,10 +31,10 @@ with gr.Blocks() as demo:
|
|
31 |
clear = gr.Button("Clear")
|
32 |
|
33 |
audio_btn.click(fn=action, inputs=audio_btn, outputs=audio_btn).\
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
|
38 |
-
clear.click(lambda: None, None, msg, queue=False)
|
39 |
|
40 |
demo.queue().launch(debug=True)
|
|
|
31 |
clear = gr.Button("Clear")
|
32 |
|
33 |
audio_btn.click(fn=action, inputs=audio_btn, outputs=audio_btn).\
|
34 |
+
then(fn=lambda: None, _js=click_js()).\
|
35 |
+
then(fn=check_btn, inputs=audio_btn).\
|
36 |
+
success(fn=transcribe, outputs=msg)
|
37 |
|
38 |
+
clear.click(lambda: None, None, msg, queue=False)
|
39 |
|
40 |
demo.queue().launch(debug=True)
|