Spaces:
Runtime error
Runtime error
Commit
Β·
bfcaa95
1
Parent(s):
15309b3
Update minigpt4/conversation/conversation.py
Browse files
minigpt4/conversation/conversation.py
CHANGED
@@ -210,6 +210,7 @@ class Chat:
|
|
210 |
|
211 |
image_emb, _ = self.model.encode_img(image)
|
212 |
img_list.append(image_emb)
|
|
|
213 |
|
214 |
def upload_img(self, image, conv, img_list):
|
215 |
conv.append_message(conv.roles[0], "<Img><ImageHere></Img>")
|
|
|
210 |
|
211 |
image_emb, _ = self.model.encode_img(image)
|
212 |
img_list.append(image_emb)
|
213 |
+
return img_list
|
214 |
|
215 |
def upload_img(self, image, conv, img_list):
|
216 |
conv.append_message(conv.roles[0], "<Img><ImageHere></Img>")
|