From 374de0c61d9ddc648fef04d136b6f92e8fb99eb0 Mon Sep 17 00:00:00 2001 From: Darius Karel Date: Sun, 3 Mar 2024 19:00:15 -0800 Subject: [PATCH] fix ui --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 75678fd..4279dcc 100644 --- a/app.py +++ b/app.py @@ -23,13 +23,13 @@ def main(): img_input = gr.Image(label="Image of yourself") drp_outfit = gr.Dropdown( label="Select a new outfit", - choices=OUTFIT_SELECTION.sort(), + choices=sorted(OUTFIT_SELECTION), value=choice(OUTFIT_SELECTION), ) with gr.Column(): btn_change = gr.Button(value="Change outfit", variant="primary") - img_output = gr.Image(label="Image of you wearing a dress") + img_output = gr.Image(label="Image of you wearing the outfit") btn_change.click( generate_output, inputs=[img_input, drp_outfit], outputs=[img_output]