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)