Skip to content

Commit

Permalink
modify multi-img prompt in
Browse files Browse the repository at this point in the history
  • Loading branch information
Coobiw committed Jun 10, 2024
1 parent 79792fd commit 98fd2ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cli_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,11 @@ def main():
try:
if first:
if '<ImageHere>' not in query:
query = f'<Img>{"<ImageHere>" * len(image_paths)}</Img> ' + query
# query = f'<Img>{"<ImageHere>" * len(image_paths)}</Img> ' + query
img_query = ""
for _ in image_paths:
img_query += '<Img><ImageHere></Img>'
query = img_query + query
first = False
if args.cpu_only:
model.bfloat16()
Expand Down

0 comments on commit 98fd2ab

Please sign in to comment.