Update common.cpp
Add the ability to specify --image multiple times
This commit is contained in:
parent
2cc1b8cd31
commit
55ef24a341
1 changed files with 5 additions and 1 deletions
|
@ -768,7 +768,11 @@ bool gpt_params_find_arg(int argc, char ** argv, const std::string & arg, gpt_pa
|
|||
invalid_param = true;
|
||||
return true;
|
||||
}
|
||||
params.image = argv[i];
|
||||
if (params.image != "") {
|
||||
params.image += ",";
|
||||
}
|
||||
params.image += argv[i];
|
||||
params.image = std::regex_replace(params.image,std::regex(" --image "), ",");
|
||||
return true;
|
||||
}
|
||||
if (arg == "-i" || arg == "--interactive") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue