move input type above the image/video

This commit is contained in:
wa22 2024-06-03 17:14:41 +08:00
parent c192502a26
commit 9b051cef82

5
app.py
View File

@ -48,14 +48,13 @@ def app():
with gr.Blocks(): with gr.Blocks():
with gr.Row(): with gr.Row():
with gr.Column(): with gr.Column():
image = gr.Image(type="pil", label="Image", visible=True)
video = gr.Video(label="Video", visible=False)
input_type = gr.Radio( input_type = gr.Radio(
choices=["Image", "Video"], choices=["Image", "Video"],
value="Image", value="Image",
label="Input Type", label="Input Type",
) )
image = gr.Image(type="pil", label="Image", visible=True)
video = gr.Video(label="Video", visible=False)
model_id = gr.Dropdown( model_id = gr.Dropdown(
label="Model", label="Model",
choices=[ choices=[