Spaces:
Runtime error
Runtime error
RGB conversion
Browse files
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():
|