Skip to content

Commit

Permalink
Gradio app queue + share=True
Browse files Browse the repository at this point in the history
  • Loading branch information
andreped committed May 24, 2023
1 parent d46f53d commit 4eaed2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion demo/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 4eaed2f

Please sign in to comment.