mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
Case-insensitive sorting for the list of themes
This commit is contained in:
+1
-1
@@ -211,7 +211,7 @@ def list_themes():
|
||||
else:
|
||||
res = []
|
||||
builtin = ["black-orange", "gradio/default", "gradio/base", "gradio/glass", "gradio/monochrome", "gradio/soft"]
|
||||
themes = sorted(set(builtin + [x['id'] for x in res if x['status'] == 'RUNNING' and 'test' not in x['id'].lower()]))
|
||||
themes = sorted(set(builtin + [x['id'] for x in res if x['status'] == 'RUNNING' and 'test' not in x['id'].lower()]), key=str.casefold)
|
||||
return themes
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user