prithivMLmods commited on
Commit
7664b12
·
verified ·
1 Parent(s): 28be05f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -318,8 +318,8 @@ with gr.Blocks(css=custom_css, theme=app_theme) as demo:
318
  with gr.Tab("Image Segmentation"):
319
  with gr.Row():
320
  with gr.Column(scale=1):
321
- image_input = gr.Image(label="Source Image", type="pil", height=350)
322
- txt_prompt_img = gr.Textbox(label="Text Description", placeholder="e.g., cat, face, car wheel")
323
  with gr.Accordion("Advanced Settings", open=False):
324
  conf_slider = gr.Slider(0.0, 1.0, value=0.45, step=0.05, label="Confidence Threshold")
325
 
@@ -348,8 +348,8 @@ with gr.Blocks(css=custom_css, theme=app_theme) as demo:
348
  with gr.Tab("Video Segmentation"):
349
  with gr.Row():
350
  with gr.Column():
351
- video_input = gr.Video(label="Source Video", format="mp4", height=320)
352
- txt_prompt_vid = gr.Textbox(label="Text Description", placeholder="e.g., person running, red car")
353
 
354
  with gr.Row():
355
  frame_limiter = gr.Slider(10, 500, value=60, step=10, label="Max Frames")
@@ -381,7 +381,7 @@ with gr.Blocks(css=custom_css, theme=app_theme) as demo:
381
  with gr.Tab("Image Click Segmentation"):
382
  with gr.Row():
383
  with gr.Column(scale=1):
384
- img_click_input = gr.Image(type="pil", label="Input Image (Click points)", interactive=True, height=450)
385
 
386
  with gr.Row():
387
  img_click_clear = gr.Button("Clear Points & Reset", variant="secondary")
 
318
  with gr.Tab("Image Segmentation"):
319
  with gr.Row():
320
  with gr.Column(scale=1):
321
+ image_input = gr.Image(label="Upload Image", type="pil", height=350)
322
+ txt_prompt_img = gr.Textbox(label="Text Prompt", placeholder="e.g., cat, face, car wheel")
323
  with gr.Accordion("Advanced Settings", open=False):
324
  conf_slider = gr.Slider(0.0, 1.0, value=0.45, step=0.05, label="Confidence Threshold")
325
 
 
348
  with gr.Tab("Video Segmentation"):
349
  with gr.Row():
350
  with gr.Column():
351
+ video_input = gr.Video(label="Upload Video", format="mp4", height=320)
352
+ txt_prompt_vid = gr.Textbox(label="Text Prompt", placeholder="e.g., person running, red car")
353
 
354
  with gr.Row():
355
  frame_limiter = gr.Slider(10, 500, value=60, step=10, label="Max Frames")
 
381
  with gr.Tab("Image Click Segmentation"):
382
  with gr.Row():
383
  with gr.Column(scale=1):
384
+ img_click_input = gr.Image(type="pil", label="Upload Image", interactive=True, height=450)
385
 
386
  with gr.Row():
387
  img_click_clear = gr.Button("Clear Points & Reset", variant="secondary")