Skip to content

Commit

Permalink
File list in alphabetical order
Browse files Browse the repository at this point in the history
  • Loading branch information
SortAnon authored Jul 7, 2021
1 parent 812f0ab commit 405c4c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllable_talknet.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ def update_pitch_options(value):
def update_filelist(n_clicks):
filelist = []
supported_formats = [".wav", ".ogg", ".mp3", "flac", ".aac"]
for x in os.listdir(UPLOAD_DIRECTORY):
for x in sorted(os.listdir(UPLOAD_DIRECTORY)):
if x[-4:].lower() in supported_formats:
filelist.append({"label": x, "value": x})
return filelist
Expand Down

0 comments on commit 405c4c7

Please sign in to comment.