Thiago Hersan
commited on
Commit
·
8c822b0
1
Parent(s):
7c653a9
Adds description
Browse files
app.py
CHANGED
|
@@ -74,17 +74,21 @@ def query_image(image_path):
|
|
| 74 |
|
| 75 |
|
| 76 |
demo = gr.Interface(
|
|
|
|
|
|
|
|
|
|
| 77 |
fn=query_image,
|
| 78 |
inputs=[gr.Image(type="filepath", label="Input Image")],
|
| 79 |
outputs=[
|
| 80 |
gr.Image(label="Vegetation"),
|
| 81 |
gr.DataFrame(label="Info", headers=["Object Label", "Pixel Percent", "Square Length"])
|
| 82 |
],
|
| 83 |
-
|
| 84 |
-
allow_flagging="never",
|
| 85 |
-
analytics_enabled=None,
|
| 86 |
examples=example_images,
|
| 87 |
-
cache_examples=True
|
|
|
|
|
|
|
|
|
|
| 88 |
)
|
| 89 |
|
| 90 |
demo.launch(show_api=False)
|
|
|
|
| 74 |
|
| 75 |
|
| 76 |
demo = gr.Interface(
|
| 77 |
+
title="Maskformer (large-coco)",
|
| 78 |
+
description="Use [facebook/maskformer-swin-large-coco](https://huggingface.co/facebook/maskformer-swin-large-coco) model to calculate percentage of pixels in an image that belong to vegetation.",
|
| 79 |
+
|
| 80 |
fn=query_image,
|
| 81 |
inputs=[gr.Image(type="filepath", label="Input Image")],
|
| 82 |
outputs=[
|
| 83 |
gr.Image(label="Vegetation"),
|
| 84 |
gr.DataFrame(label="Info", headers=["Object Label", "Pixel Percent", "Square Length"])
|
| 85 |
],
|
| 86 |
+
|
|
|
|
|
|
|
| 87 |
examples=example_images,
|
| 88 |
+
cache_examples=True,
|
| 89 |
+
|
| 90 |
+
allow_flagging="never",
|
| 91 |
+
analytics_enabled=None
|
| 92 |
)
|
| 93 |
|
| 94 |
demo.launch(show_api=False)
|