Skip to content

Commit

Permalink
feat: revert disabling persistent style sorting, code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mashb1t committed Jul 17, 2024
1 parent 033cb90 commit 97a8475
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion modules/meta_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import fooocus_version
import modules.config
import modules.sdxl_styles
from modules import hash_cache
from modules.flags import MetadataScheme, Performance, Steps
from modules.flags import SAMPLERS, CIVITAI_NO_KARRAS
from modules.hash_cache import sha256_from_cache
Expand Down
2 changes: 0 additions & 2 deletions modules/style_sorter.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,13 @@ 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)
except Exception as e:
print('Write style sorting failed.')
print(e)
all_styles = sorted_styles
"""
return gr.CheckboxGroup.update(choices=sorted_styles)


Expand Down

0 comments on commit 97a8475

Please sign in to comment.