Update app.py
Browse files
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
|
| 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=
|
| 733 |
maximum=64,
|
| 734 |
step=4,
|
| 735 |
-
value=
|
| 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 "
|