Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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,
|
57 |
-
image_tokens = "<image>" *
|
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):
|