Browse Source

Add inbrower for web demo

pull/62/head^2
duzx16 2 years ago
parent
commit
e565185c29
  1. 2
      web_demo.py

2
web_demo.py

@ -37,4 +37,4 @@ with gr.Blocks() as demo:
with gr.Column(scale=1):
button = gr.Button("Generate")
button.click(predict, [txt, state], [state] + text_boxes)
demo.queue().launch(share=True)
demo.queue().launch(share=True, inbrowser=True)

Loading…
Cancel
Save