mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-21 23:57:58 +01:00
Send_pictures small fix (#546)
This commit is contained in:
parent
0b458bf82d
commit
c97c270040
@ -25,7 +25,7 @@ def caption_image(raw_image):
|
||||
|
||||
|
||||
def generate_chat_picture(picture, name1, name2):
|
||||
text = f'*{name1} sends {name2} a picture that contains the following: "{caption_image(picture)}"*'
|
||||
text = f'*{name1} sends {name2} a picture that contains the following: “{caption_image(picture)}”*'
|
||||
# lower the resolution of sent images for the chat, otherwise the log size gets out of control quickly with all the base64 values in visible history
|
||||
picture.thumbnail((300, 300))
|
||||
buffer = BytesIO()
|
||||
|
Loading…
Reference in New Issue
Block a user