From 9b051cef82bd5d5423566a5baa93ce477bd47d55 Mon Sep 17 00:00:00 2001 From: wa22 Date: Mon, 3 Jun 2024 17:14:41 +0800 Subject: [PATCH] move input type above the image/video --- app.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index fcd63661..6fddcbaa 100644 --- a/app.py +++ b/app.py @@ -48,14 +48,13 @@ def app(): with gr.Blocks(): with gr.Row(): with gr.Column(): + image = gr.Image(type="pil", label="Image", visible=True) + video = gr.Video(label="Video", visible=False) input_type = gr.Radio( choices=["Image", "Video"], value="Image", label="Input Type", ) - image = gr.Image(type="pil", label="Image", visible=True) - video = gr.Video(label="Video", visible=False) - model_id = gr.Dropdown( label="Model", choices=[