Spaces:
Runtime error
Runtime error
update cap
Browse files
multimodal/open_flamingo/chat/conversation.py
CHANGED
@@ -274,7 +274,7 @@ def preprocess_image(sample, image_processor):
|
|
274 |
image = torch.tensor(image["pixel_values"][0])
|
275 |
return image
|
276 |
|
277 |
-
|
278 |
class ChatBOT:
|
279 |
def __init__(self, model, vis_processor, tokenizer, vis_embed_size,model_name):
|
280 |
self.model = model
|
|
|
274 |
image = torch.tensor(image["pixel_values"][0])
|
275 |
return image
|
276 |
|
277 |
+
@dataclasses.dataclass
|
278 |
class ChatBOT:
|
279 |
def __init__(self, model, vis_processor, tokenizer, vis_embed_size,model_name):
|
280 |
self.model = model
|