maknee commited on
Commit
3429d4b
1 Parent(s): 12d8418

RGB conversion

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ def upload_image(image, history):
55
  if image is None:
56
  return None, None, gr.update(interactive=True), history
57
  history = []
58
- minigpt4_chatbot.upload_image(image)
59
  return gr.update(interactive=False), gr.update(interactive=True, placeholder='Type and press Enter'), gr.update(value="Start Chatting", interactive=False), history
60
 
61
  def start():
 
55
  if image is None:
56
  return None, None, gr.update(interactive=True), history
57
  history = []
58
+ minigpt4_chatbot.upload_image(image.convert('RGB'))
59
  return gr.update(interactive=False), gr.update(interactive=True, placeholder='Type and press Enter'), gr.update(value="Start Chatting", interactive=False), history
60
 
61
  def start():