Spaces:
Running
on
T4
Running
on
T4
praeclarumjj3
commited on
Commit
•
4f81b41
1
Parent(s):
da4c441
Fix deprecated Radio
Browse files- gradio_app.py +3 -3
gradio_app.py
CHANGED
@@ -178,9 +178,9 @@ description = "<p style='color: #E0B941; font-size: 16px; font-weight: w600; tex
|
|
178 |
# setup_predictors()
|
179 |
|
180 |
gradio_inputs = [gr.Image(source="upload", tool=None, label="Input Image",type="filepath"),
|
181 |
-
gr.
|
182 |
-
gr.
|
183 |
-
gr.
|
184 |
]
|
185 |
gradio_outputs = [gr.Image(type="pil", label="Segmentation Overlay"), gr.Image(type="pil", label="Segmentation Map")]
|
186 |
|
|
|
178 |
# setup_predictors()
|
179 |
|
180 |
gradio_inputs = [gr.Image(source="upload", tool=None, label="Input Image",type="filepath"),
|
181 |
+
gr.Radio(choices=["the task is panoptic" ,"the task is instance", "the task is semantic"], type="value", value="the task is panoptic", label="Task Token Input"),
|
182 |
+
gr.Radio(choices=["COCO (133 classes)" ,"Cityscapes (19 classes)", "ADE20K (150 classes)"], type="value", value="Cityscapes (19 classes)", label="Model"),
|
183 |
+
gr.Radio(choices=["DiNAT-L" ,"Swin-L"], type="value", value="DiNAT-L", label="Backbone"),
|
184 |
]
|
185 |
gradio_outputs = [gr.Image(type="pil", label="Segmentation Overlay"), gr.Image(type="pil", label="Segmentation Map")]
|
186 |
|