From b499af53b648a2b6006dffb77a5adef97850361c Mon Sep 17 00:00:00 2001 From: Shreyesh <76511222+shreyesh0610@users.noreply.github.com> Date: Fri, 8 Dec 2023 12:17:39 +0400 Subject: [PATCH] gradio inputs outputs deprecated fix --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index b792dff..b4433d7 100644 --- a/app.py +++ b/app.py @@ -25,10 +25,10 @@ def run(img): return cloth_seg # Define input and output interfaces -input_image = gr.inputs.Image(label="Input Image", type="pil") +input_image = gr.Image(label="Input Image", type="pil") # Define the Gradio interface -cloth_seg_image = gr.outputs.Image(label="Cloth Segmentation", type="pil") +cloth_seg_image = gr.Image(label="Cloth Segmentation", type="pil") title = "Demo for Cloth Segmentation" description = "An app for Cloth Segmentation"