Skip to content

Commit ae241a9

Browse files
committedDec 30, 2024
Fix video example
1 parent 1ef6183 commit ae241a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎examples/multimodal_video.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@
3131
greedy = True
3232

3333
model_directory = "/mnt/str/models/qwen2-vl-7b-instruct-exl2/6.0bpw"
34+
images_mask = os.path.join(os.path.dirname(os.path.abspath(__file__)), "media/test_video_*.png")
3435

3536
frames = [
3637
{"file": f}
37-
for f in sorted(glob.glob("media/test_video_*.png"))
38+
for f in sorted(glob.glob(images_mask))
3839
]
3940

4041
instruction = "Describe this video."

0 commit comments

Comments
 (0)