Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|