praeclarumjj3 commited on
Commit
4f81b41
1 Parent(s): da4c441

Fix deprecated Radio

Browse files
Files changed (1) hide show
  1. 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.inputs.Radio(choices=["the task is panoptic" ,"the task is instance", "the task is semantic"], type="value", default="the task is panoptic", label="Task Token Input"),
182
- gr.inputs.Radio(choices=["COCO (133 classes)" ,"Cityscapes (19 classes)", "ADE20K (150 classes)"], type="value", default="Cityscapes (19 classes)", label="Model"),
183
- gr.inputs.Radio(choices=["DiNAT-L" ,"Swin-L"], type="value", default="DiNAT-L", label="Backbone"),
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