update themes

This commit is contained in:
Vladimir Mandic
2023-07-26 12:47:04 -04:00
parent 660c449e08
commit 62bc9482e6
5 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -261,7 +261,7 @@ def list_themes():
res = []
list_builtin_themes()
builtin = list_builtin_themes() + ["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()]), key=str.casefold)
themes = sorted(builtin) + sorted({x['id'] for x in res if x['status'] == 'RUNNING' and 'test' not in x['id'].lower()}, key=str.casefold)
return themes