andreped commited on
Commit
4eaed2f
1 Parent(s): d46f53d

Gradio app queue + share=True

Browse files
Files changed (1) hide show
  1. demo/app.py +3 -1
demo/app.py CHANGED
@@ -56,4 +56,6 @@ if __name__ == "__main__":
56
  title="livermask: Automatic Liver Parenchyma segmentation in CT",
57
  description="Using pretrained deep learning model trained on the LiTS17 dataset",
58
  )
59
- demo.launch(server_name="0.0.0.0", server_port=7860)
 
 
 
56
  title="livermask: Automatic Liver Parenchyma segmentation in CT",
57
  description="Using pretrained deep learning model trained on the LiTS17 dataset",
58
  )
59
+ # sharing app publicly -> share=True: https://gradio.app/sharing-your-app/
60
+ # inference times > 60 seconds -> need queue(): https://github.com/tloen/alpaca-lora/issues/60#issuecomment-1510006062
61
+ demo.queue().launch(server_name="0.0.0.0", server_port=7860, share=True)