Add missing quotes in modeling_llava_next_video.py (#33214)

This commit is contained in:
Julien Denize 2024-08-30 15:39:23 +02:00 committed by GitHub
parent 9a6956baab
commit e259d6d1e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -809,7 +809,7 @@ class LlavaNextVideoForConditionalGeneration(LlavaNextVideoPreTrainedModel):
... frames.append(frame)
... return np.stack([x.to_ndarray(format="rgb24") for x in frames])
>>> model = LlavaNextVideoForConditionalGeneration.from_pretrained("llava-hf/LLaVA-NeXT-Video-7B-hf", device_map="auto)
>>> model = LlavaNextVideoForConditionalGeneration.from_pretrained("llava-hf/LLaVA-NeXT-Video-7B-hf", device_map="auto")
>>> processor = AutoProcessor.from_pretrained("llava-hf/LLaVA-NeXT-Video-7B-hf")
>>> prompt = "USER: <video>\nWhy is this video funny? ASSISTANT:"