Skip to content

Commit

Permalink
fixed multimodal warning
Browse files Browse the repository at this point in the history
  • Loading branch information
GaiZhenbiao committed Mar 10, 2024
1 parent a116794 commit 946513f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ def handle_file_upload(self, files, chatbot, language):
image_files.append(f)
else:
other_files.append(f)
if self.multimodal:
if image_files:
if image_files:
if self.multimodal:
chatbot.extend([(((image.name, None)), None) for image in image_files])
self.history.extend([construct_image(image.name) for image in image_files])
else:
Expand Down

0 comments on commit 946513f

Please sign in to comment.