Update web_demo.py

pull/151/head
Aohan Zeng 2 years ago committed by GitHub
parent c3804770e0
commit c2ff5be358
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)
demo.queue().launch(share=False, inbrowser=True)

Loading…
Cancel
Save