fix: websocket cannot send msg to server

for https://github.com/THUDM/ChatGLM-6B/issues/85
pull/105/head
Chaos 2023-03-17 00:29:26 +08:00 committed by GitHub
parent 642147bf21
commit 14eba1f83c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -37,4 +37,4 @@ with gr.Blocks() as demo:
with gr.Column(scale=1): with gr.Column(scale=1):
button = gr.Button("Generate") button = gr.Button("Generate")
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, server_name="0.0.0.0")