throaway2854 commited on
Commit
a5c8785
·
verified ·
1 Parent(s): 22b2139

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -414,7 +414,7 @@ class VideoTagger:
414
 
415
  if progress is not None:
416
  if is_first_load:
417
- progress(0.0, desc="Loading model (first run may take a while)...")
418
  else:
419
  progress(0.0, desc="Opening video...")
420
 
@@ -423,10 +423,8 @@ class VideoTagger:
423
 
424
  if progress is not None:
425
  if is_first_load:
426
- # Model just finished loading
427
  progress(0.0, desc="Model loaded, opening video...")
428
  else:
429
- # Keep the message but make clear we're past model loading
430
  progress(0.0, desc="Opening video...")
431
 
432
  cap = cv2.VideoCapture(video_path)
@@ -729,10 +727,10 @@ with gr.Blocks(title=TITLE) as demo:
729
  )
730
 
731
  batch_size = gr.Slider(
732
- minimum=0,
733
  maximum=64,
734
  step=4,
735
- value=8,
736
  label="Batch Size",
737
  info=(
738
  "Larger batch sizes may increase initial loading time but can significantly "
 
414
 
415
  if progress is not None:
416
  if is_first_load:
417
+ progress(0.0, desc="Loading model...")
418
  else:
419
  progress(0.0, desc="Opening video...")
420
 
 
423
 
424
  if progress is not None:
425
  if is_first_load:
 
426
  progress(0.0, desc="Model loaded, opening video...")
427
  else:
 
428
  progress(0.0, desc="Opening video...")
429
 
430
  cap = cv2.VideoCapture(video_path)
 
727
  )
728
 
729
  batch_size = gr.Slider(
730
+ minimum=4,
731
  maximum=64,
732
  step=4,
733
+ value=12,
734
  label="Batch Size",
735
  info=(
736
  "Larger batch sizes may increase initial loading time but can significantly "