mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-04 14:17:28 +00:00
mtmd: Use the base64 attachment for the UI preview instead of the file
This commit is contained in:
parent
6e9de75727
commit
8fcadff8d3
2 changed files with 2 additions and 4 deletions
|
|
@ -640,7 +640,6 @@ def add_message_attachment(history, row_idx, file_path, is_user=True):
|
|||
"type": "image",
|
||||
"image_data": data_url,
|
||||
"image_id": image_id,
|
||||
"file_path": str(path) # For UI preview
|
||||
}
|
||||
elif file_extension == '.pdf':
|
||||
# Process PDF file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue