Merged
Conversation
4 tasks
ffc4fd9 to
dce71df
Compare
Contributor
|
@w-e-w I will have a look & test. Gotta remind myself how to fetch an upstream branch into my fork. |
Collaborator
Author
github desktop is quite handy |
--styles-file change to append str --styles-file is [] then defaults to [styles.csv] --styles-file accepts paths or paths with wildcard "*" the first `--styles-file` entry is use as the default styles file path if filename a wildcard then the first matching file is used if no match is found, create a new "styles.csv" in the same dir as the first path when saving a new style it will be save in the default styles file when saving a existing style, it will be saved to file it belongs to order of the styles files in the styles dropdown can be controlled to a certain degree by the order of --styles-file
dce71df to
25e8273
Compare
Contributor
|
@w-e-w This looks good to me. Ran through my own use-cases and all seems fine. |
AUTOMATIC1111
approved these changes
Jan 23, 2024
Closed
Closed
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
users can specify multiple style file path by using
wildcardsand multiple entries of--styles-fileChanges
cmd arg
--styles-filechange action toappendstr whitch forms a list internally same as--gradio-allowed-pathif no
--styles-fileis set by the user is then defaults to['styles.csv']--styles-fileacceptspathsor paths with wildcard*also alow
?to be used to match a single character (previously only*can be used), https://docs.python.org/3/library/fnmatch.html#module-fnmatchDefault styles file path behavior
--styles-fileentry is use as the default styles file path*or?in the path, it is used as wildcard pattern, the first matching file is used as default sytylesstyles.csvin the same dir as the first pathother changes
--styles-filecmd arg example
use multiple
--styles-fileall at oncethis example would load
B:\\styles_dir_1\main_styles_file.csvand use as defaultB:\\styles_dir_1\sub_styles_file.csvload every file in
styles_dir_1matchingprefix_and suffix.csvload every file in
styles_dir_2matching suffix_suffix.csvloda every
.csvinstyles_dir_3@cjj1977 can you check if this satisfies your requirements
Checklist: