prithivMLmods commited on
Commit
0eef2a7
·
verified ·
1 Parent(s): e691f2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -269,7 +269,7 @@ with gr.Blocks(css=custom_css, theme=app_theme) as main_interface:
269
  btn_process_img = gr.Button("Segment Image", variant="primary")
270
 
271
  with gr.Column(scale=1.5):
272
- image_result = gr.AnnotatedImage(label="Segmented Result", height=450)
273
 
274
  gr.Examples(
275
  examples=[
@@ -278,7 +278,7 @@ with gr.Blocks(css=custom_css, theme=app_theme) as main_interface:
278
  inputs=[image_input, txt_prompt_img, conf_slider],
279
  outputs=[image_result],
280
  fn=run_image_segmentation,
281
- cache_examples=False,
282
  label="Image Examples"
283
  )
284
 
@@ -311,7 +311,7 @@ with gr.Blocks(css=custom_css, theme=app_theme) as main_interface:
311
  inputs=[video_input, txt_prompt_vid, frame_limiter, time_limiter],
312
  outputs=[video_result, process_status],
313
  fn=run_video_segmentation,
314
- cache_examples=False,
315
  label="Video Examples"
316
  )
317
 
 
269
  btn_process_img = gr.Button("Segment Image", variant="primary")
270
 
271
  with gr.Column(scale=1.5):
272
+ image_result = gr.AnnotatedImage(label="Segmented Result", height=410)
273
 
274
  gr.Examples(
275
  examples=[
 
278
  inputs=[image_input, txt_prompt_img, conf_slider],
279
  outputs=[image_result],
280
  fn=run_image_segmentation,
281
+ cache_examples="lazy",
282
  label="Image Examples"
283
  )
284
 
 
311
  inputs=[video_input, txt_prompt_vid, frame_limiter, time_limiter],
312
  outputs=[video_result, process_status],
313
  fn=run_video_segmentation,
314
+ cache_examples="lazy",
315
  label="Video Examples"
316
  )
317