Thiago Hersan commited on
Commit
1f6ce81
1 Parent(s): a67cc84

adjust labels/headers/name

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +4 -1
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: Maskformer Vegetation Gradio
3
  emoji: 🥦
4
  colorFrom: pink
5
  colorTo: indigo
 
1
  ---
2
+ title: Maskformer COCO Vegetation
3
  emoji: 🥦
4
  colorFrom: pink
5
  colorTo: indigo
app.py CHANGED
@@ -62,7 +62,10 @@ def query_image(img):
62
  demo = gr.Interface(
63
  query_image,
64
  inputs=[gr.Image(label="Input Image")],
65
- outputs=[gr.Image(label="Vegetation"), gr.DataFrame(headers=None, label="Area Info")],
 
 
 
66
  title="maskformer-swin-large-coco",
67
  allow_flagging="never",
68
  analytics_enabled=None
 
62
  demo = gr.Interface(
63
  query_image,
64
  inputs=[gr.Image(label="Input Image")],
65
+ outputs=[
66
+ gr.Image(label="Vegetation"),
67
+ gr.DataFrame(label="Info", headers=["Object Label", "Pixel Percent", "Square Length"])
68
+ ],
69
  title="maskformer-swin-large-coco",
70
  allow_flagging="never",
71
  analytics_enabled=None