Sync branch 'mashb1t_main' with develop_upstream

This commit is contained in:
Manuel Schmid
2024-07-14 20:28:38 +02:00
40 changed files with 2815 additions and 904 deletions
+2
View File
@@ -37,6 +37,7 @@ def sort_styles(selected):
global all_styles
unselected = [y for y in all_styles if y not in selected]
sorted_styles = selected + unselected
"""
try:
with open('sorted_styles.json', 'wt', encoding='utf-8') as fp:
json.dump(sorted_styles, fp, indent=4)
@@ -44,6 +45,7 @@ def sort_styles(selected):
print('Write style sorting failed.')
print(e)
all_styles = sorted_styles
"""
return gr.CheckboxGroup.update(choices=sorted_styles)