File tree Expand file tree Collapse file tree 2 files changed +0
-3
lines changed
Expand file tree Collapse file tree 2 files changed +0
-3
lines changed Original file line number Diff line number Diff line change 99import fooocus_version
1010import modules .config
1111import modules .sdxl_styles
12- from modules import hash_cache
1312from modules .flags import MetadataScheme , Performance , Steps
1413from modules .flags import SAMPLERS , CIVITAI_NO_KARRAS
1514from modules .hash_cache import sha256_from_cache
Original file line number Diff line number Diff line change @@ -37,15 +37,13 @@ def sort_styles(selected):
3737 global all_styles
3838 unselected = [y for y in all_styles if y not in selected ]
3939 sorted_styles = selected + unselected
40- """
4140 try :
4241 with open ('sorted_styles.json' , 'wt' , encoding = 'utf-8' ) as fp :
4342 json .dump (sorted_styles , fp , indent = 4 )
4443 except Exception as e :
4544 print ('Write style sorting failed.' )
4645 print (e )
4746 all_styles = sorted_styles
48- """
4947 return gr .CheckboxGroup .update (choices = sorted_styles )
5048
5149
You can’t perform that action at this time.
0 commit comments