MiniGPT-4 icon indicating copy to clipboard operation
MiniGPT-4 copied to clipboard

Enable uploading multiple images in demo.py

Open ifsheldon opened this issue 2 years ago • 0 comments

I made a few changes to enable uploading multiple images. This should close #180.

The changes include:

  • Changed the logic of upload button, image window and text input
  • Added a new UI component, i.e., gallery, to show uploaded images

One remaining problem is that we cannot upload multiple images all at once, because I suspect this line may cause issues. https://github.com/Vision-CAIR/MiniGPT-4/blob/22d8888ca2cf0aac862f537e7d22ef5830036808/minigpt4/conversation/conversation.py#L133 So now, after uploading an image, a text input should follow before uploading another image.

ifsheldon avatar May 17 '23 12:05 ifsheldon