Skip to content

Commit

Permalink
Fix video example
Browse files Browse the repository at this point in the history
  • Loading branch information
turboderp committed Dec 30, 2024
1 parent 1ef6183 commit ae241a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/multimodal_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@
greedy = True

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

frames = [
{"file": f}
for f in sorted(glob.glob("media/test_video_*.png"))
for f in sorted(glob.glob(images_mask))
]

instruction = "Describe this video."
Expand Down

0 comments on commit ae241a9

Please sign in to comment.