From c2ff5be35857348a9ca261344e598df1e78d928d Mon Sep 17 00:00:00 2001 From: Aohan Zeng Date: Mon, 20 Mar 2023 15:34:36 +0800 Subject: [PATCH] Update web_demo.py --- web_demo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_demo.py b/web_demo.py index 39709a7..88a6dc8 100644 --- a/web_demo.py +++ b/web_demo.py @@ -42,4 +42,4 @@ with gr.Blocks() as demo: temperature = gr.Slider(0, 1, value=0.95, step=0.01, label="Temperature", interactive=True) button = gr.Button("Generate") button.click(predict, [txt, max_length, top_p, temperature, state], [state] + text_boxes) -demo.queue().launch(share=True, inbrowser=True) \ No newline at end of file +demo.queue().launch(share=False, inbrowser=True)