mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Reorganize whisper extension
This commit is contained in:
parent
02cf8f5898
commit
7a0ef1c941
@ -40,5 +40,7 @@ def ui():
|
|||||||
with gr.Row():
|
with gr.Row():
|
||||||
audio = gr.Audio(source="microphone")
|
audio = gr.Audio(source="microphone")
|
||||||
auto_submit = gr.Checkbox(label='Submit the transcribed audio automatically', value=True)
|
auto_submit = gr.Checkbox(label='Submit the transcribed audio automatically', value=True)
|
||||||
audio.change(fn=auto_transcribe, inputs=[audio, auto_submit], outputs=[shared.gradio['textbox'], audio])
|
|
||||||
audio.change(None, auto_submit, None, _js="(check) => {if (check) { document.getElementById('Generate').click() }}")
|
audio.change(
|
||||||
|
auto_transcribe, [audio, auto_submit], [shared.gradio['textbox'], audio]).then(
|
||||||
|
None, auto_submit, None, _js="(check) => {if (check) { document.getElementById('Generate').click() }}")
|
||||||
|
Loading…
Reference in New Issue
Block a user