text-generation-webui icon indicating copy to clipboard operation
text-generation-webui copied to clipboard

[Issue] Expected file type for chat history/upload character is wrong

Open Manimap opened this issue 2 years ago • 2 comments

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"

image

Manimap avatar Feb 22 '23 05:02 Manimap

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']).

oobabooga avatar Feb 22 '23 14:02 oobabooga

I'm not sure how windows sees that then, because for example here is what I see for "upload character" : image (and the folder is empty because nothing matches it, until I click and change to All files)

Meanwhile for uploading a tavern character : image (and I can properly see images without changing to All files)

Manimap avatar Feb 22 '23 14:02 Manimap

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.

github-actions[bot] avatar Mar 24 '23 23:03 github-actions[bot]