mirror of https://github.com/THUDM/ChatGLM-6B
Merge 4da3176801
into d1121e1dae
commit
9ceade3c02
|
@ -36,5 +36,6 @@ with gr.Blocks() as demo:
|
||||||
txt = gr.Textbox(show_label=False, placeholder="Enter text and press enter").style(container=False)
|
txt = gr.Textbox(show_label=False, placeholder="Enter text and press enter").style(container=False)
|
||||||
with gr.Column(scale=1):
|
with gr.Column(scale=1):
|
||||||
button = gr.Button("Generate")
|
button = gr.Button("Generate")
|
||||||
|
txt.submit(predict, [txt, state], [state] + text_boxes)
|
||||||
button.click(predict, [txt, state], [state] + text_boxes)
|
button.click(predict, [txt, state], [state] + text_boxes)
|
||||||
demo.queue().launch(share=True, inbrowser=True)
|
demo.queue().launch(share=True, inbrowser=True)
|
||||||
|
|
Loading…
Reference in New Issue