merve HF staff commited on
Commit
4bea437
1 Parent(s): 1b79c01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -53,8 +53,8 @@ def bot_streaming(message, history):
53
  image_extensions = tuple([ex for ex, f in image_extensions.items()])
54
 
55
  if image.endswith(video_extensions):
56
- image = sample_frames(image, 5)
57
- image_tokens = "<image>" * 5
58
  prompt = f"<|im_start|>user {image_tokens}\n{message}<|im_end|><|im_start|>assistant"
59
 
60
  elif image.endswith(image_extensions):
 
53
  image_extensions = tuple([ex for ex, f in image_extensions.items()])
54
 
55
  if image.endswith(video_extensions):
56
+ image = sample_frames(image, 12)
57
+ image_tokens = "<image>" * 13
58
  prompt = f"<|im_start|>user {image_tokens}\n{message}<|im_end|><|im_start|>assistant"
59
 
60
  elif image.endswith(image_extensions):