Update README.md
Browse files39 unmodified lines40414243444539 unmodified linesHere we show a code snippet to show you how to do **real-time video commentary** with `transformers` and the above utils:```pythonclass LiveCCDemoInfer:fps = 2initial_fps_frames = 639 unmodified lines4041424344454647484950515239 unmodified linesHere we show a code snippet to show you how to do **real-time video commentary** with `transformers` and the above utils:```pythonimport functools, torch, os, tqdmfrom liger_kernel.transformers import apply_liger_kernel_to_qwen2_vlapply_liger_kernel_to_qwen2_vl() # important. our model is trained with this. keep consistencyfrom transformers import Qwen2VLForConditionalGeneration, AutoProcessor, LogitsProcessor, loggingfrom livecc_utils import prepare_multiturn_multimodal_inputs_for_generation, get_smart_resized_clip, get_smart_resized_video_readerfrom qwen_vl_utils import process_vision_infoclass LiveCCDemoInfer:fps = 2initial_fps_frames = 6
README.md+7