Skip to content

Commit 405c4c7

Browse files
authored
File list in alphabetical order
1 parent 812f0ab commit 405c4c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

controllable_talknet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ def update_pitch_options(value):
645645
def update_filelist(n_clicks):
646646
filelist = []
647647
supported_formats = [".wav", ".ogg", ".mp3", "flac", ".aac"]
648-
for x in os.listdir(UPLOAD_DIRECTORY):
648+
for x in sorted(os.listdir(UPLOAD_DIRECTORY)):
649649
if x[-4:].lower() in supported_formats:
650650
filelist.append({"label": x, "value": x})
651651
return filelist

0 commit comments

Comments
 (0)