mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 17:05:41 +01:00
Update ui.py
# Sort the uploaded files alphabetically
This commit is contained in:
parent
6674b46fea
commit
e2847daf4c
1 changed files with 2 additions and 1 deletions
|
|
@ -289,7 +289,8 @@ class PrivateGptUi:
|
|||
"file_name", "[FILE NAME MISSING]"
|
||||
)
|
||||
files.add(file_name)
|
||||
return [[row] for row in files]
|
||||
sorted_files = sorted(files) # Sort the files alphabetically
|
||||
return [[row] for row in sorted_files] # Use sorted files
|
||||
|
||||
def _upload_file(self, files: list[str]) -> None:
|
||||
logger.debug("Loading count=%s files", len(files))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue