From 4eaed2fb1db82dd7b2f0b72dca4e9644312e03d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Pedersen?= Date: Wed, 24 May 2023 18:38:16 +0200 Subject: [PATCH] Gradio app queue + share=True --- demo/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/demo/app.py b/demo/app.py index bfddf25..19f9df0 100644 --- a/demo/app.py +++ b/demo/app.py @@ -56,4 +56,6 @@ def load_mesh(mesh_file_name): title="livermask: Automatic Liver Parenchyma segmentation in CT", description="Using pretrained deep learning model trained on the LiTS17 dataset", ) - demo.launch(server_name="0.0.0.0", server_port=7860) + # sharing app publicly -> share=True: https://gradio.app/sharing-your-app/ + # inference times > 60 seconds -> need queue(): https://github.com/tloen/alpaca-lora/issues/60#issuecomment-1510006062 + demo.queue().launch(server_name="0.0.0.0", server_port=7860, share=True)