andrewqian123
commited on
Commit
•
a03d6de
1
Parent(s):
e720fb3
Update modeling_minicpmv.py
Browse files- modeling_minicpmv.py +1 -0
modeling_minicpmv.py
CHANGED
@@ -299,6 +299,7 @@ class MiniCPMV(MiniCPMVPreTrainedModel):
|
|
299 |
# copy_msgs[0]['content'] = '(<image>./</image>)\n' + copy_msgs[0]['content']
|
300 |
#copy_msgs[0]["content"] = [image, copy_msgs[0]["content"]]
|
301 |
#copy_msgs[0]["content"] = [image, copy_msgs[0]["content"]]
|
|
|
302 |
copy_msgs[0]["content"].insert(-1, im)
|
303 |
images = []
|
304 |
for i, msg in enumerate(copy_msgs):
|
|
|
299 |
# copy_msgs[0]['content'] = '(<image>./</image>)\n' + copy_msgs[0]['content']
|
300 |
#copy_msgs[0]["content"] = [image, copy_msgs[0]["content"]]
|
301 |
#copy_msgs[0]["content"] = [image, copy_msgs[0]["content"]]
|
302 |
+
copy_msgs[0]["content"] = [copy_msgs[0]["content"]]
|
303 |
copy_msgs[0]["content"].insert(-1, im)
|
304 |
images = []
|
305 |
for i, msg in enumerate(copy_msgs):
|