Spaces:
Runtime error
Runtime error
update chat
Browse files
multimodal/open_flamingo/chat/conversation.py
CHANGED
|
@@ -353,8 +353,8 @@ class Chat:
|
|
| 353 |
# "value": "",
|
| 354 |
# })
|
| 355 |
text = preprocess_conv(conv).strip()
|
| 356 |
-
caption = f"<|#image#|>{tokenizer.pad_token * self.vis_embed_size}<|#endofimage#|>{text}"
|
| 357 |
-
encodings = tokenizer(
|
| 358 |
caption,
|
| 359 |
padding="longest",
|
| 360 |
truncation=True,
|
|
|
|
| 353 |
# "value": "",
|
| 354 |
# })
|
| 355 |
text = preprocess_conv(conv).strip()
|
| 356 |
+
caption = f"<|#image#|>{self.tokenizer.pad_token * self.vis_embed_size}<|#endofimage#|>{text}"
|
| 357 |
+
encodings = self.tokenizer(
|
| 358 |
caption,
|
| 359 |
padding="longest",
|
| 360 |
truncation=True,
|