yaful commited on
Commit
9fd13f7
β€’
1 Parent(s): 2a8723f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py CHANGED
@@ -34,5 +34,22 @@ def detect(input_text,th=-3.08583984375):
34
 
35
  return label2decisions[decision]
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  iface = gr.Interface(fn=detect, inputs="text", outputs="text")
38
  iface.launch()
 
34
 
35
  return label2decisions[decision]
36
 
37
+ description_e = """This is a demo on Github project πŸƒ [Fast Segment Anything Model](https://github.com/CASIA-IVA-Lab/FastSAM).
38
+
39
+ 🎯 Upload an Image, segment it with Fast Segment Anything (Everything mode). The other modes will come soon.
40
+
41
+ βŒ›οΈ It takes about 6~ seconds to generate segment results. The concurrency_count of queue is 1, please wait for a moment when it is crowded.
42
+
43
+ πŸš€ To get faster results, you can use a smaller input size and leave high_visual_quality unchecked.
44
+
45
+ πŸ“£ You can also obtain the segmentation results of any Image through this Colab: [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1oX14f6IneGGw612WgVlAiy91UHwFAvr9?usp=sharing)
46
+
47
+ 😚 A huge thanks goes out to the @HuggingFace Team for supporting us with GPU grant.
48
+
49
+ 🏠 Check out our [Model Card πŸƒ](https://huggingface.co/An-619/FastSAM)
50
+
51
+ """
52
+
53
+ gr.Markdown(description_e)
54
  iface = gr.Interface(fn=detect, inputs="text", outputs="text")
55
  iface.launch()