Maknee / minigpt4.cpp

Port of MiniGPT4 in C++ (4bit, 5bit, 6bit, 8bit, 16bit CPU inference with GGML)
MIT License
549 stars 26 forks source link

Check if image is ready before chatting about it #4

Closed felladrin closed 1 year ago

felladrin commented 1 year ago

This should help avoid the UnicodeDecodeError: 'utf-8' codec can't decode byte 0xeb in position 0: unexpected end of data error, which happens when calling the chat function before uploading the image. Instead, in the terminal, a message will inform that the image still needs to be uploaded.

Maknee commented 1 year ago

Thanks for finding an issue with the webui and fixing it!