rockeycoss commited on
Commit
d8c32ac
·
1 Parent(s): e8dd899

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -101,8 +101,9 @@ description = """
101
  Github link: [Link](https://github.com/RockeyCoss/Prompt-Segment-Anything)
102
  You can select the model you want to use from the "Model" dropdown menu and click "Submit" to segment the image you uploaded to the "Input Image" box.
103
  """
104
-
105
-
 
106
  def main():
107
  with gr.Blocks() as demo:
108
  gr.Markdown(description)
 
101
  Github link: [Link](https://github.com/RockeyCoss/Prompt-Segment-Anything)
102
  You can select the model you want to use from the "Model" dropdown menu and click "Submit" to segment the image you uploaded to the "Input Image" box.
103
  """
104
+ if (SPACE_ID := os.getenv('SPACE_ID')) is not None:
105
+ description += f'\n<p>For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings. <a href="https://huggingface.co/spaces/{SPACE_ID}?duplicate=true"><img style="display: inline; margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space" /></a></p>'
106
+
107
  def main():
108
  with gr.Blocks() as demo:
109
  gr.Markdown(description)