text-generation-webui
text-generation-webui copied to clipboard
[Issue] Expected file type for chat history/upload character is wrong
On windows, when you open the chat history, you can't see any files by default, because the expected filtered files are ".json/" and "*.txt/" instead of ".json" and ".txt"
It is written like this in the code
upload_chat_history = gr.File(type='binary', file_types=[".json", ".txt"])
The documentation recommends the same format https://gradio.app/docs/#file
List of file extensions or types of files to be uploaded (e.g. ['image', '.json', '.mp4']).
I'm not sure how windows sees that then, because for example here is what I see for "upload character" :
(and the folder is empty because nothing matches it, until I click and change to All files)
Meanwhile for uploading a tavern character :
(and I can properly see images without changing to All files)
This issue has been closed due to inactivity for 30 days. If you believe it is still relevant, you can reopen it (if you are the author) or leave a comment below.