pull/9/merge
Bernard Tan 2023-03-17 17:46:16 +08:00 committed by GitHub
commit 9ceade3c02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -36,5 +36,6 @@ with gr.Blocks() as demo:
txt = gr.Textbox(show_label=False, placeholder="Enter text and press enter").style(container=False)
with gr.Column(scale=1):
button = gr.Button("Generate")
txt.submit(predict, [txt, state], [state] + text_boxes)
button.click(predict, [txt, state], [state] + text_boxes)
demo.queue().launch(share=True, inbrowser=True)