Update common.cpp
update image flag processing code to work with vector type
This commit is contained in:
parent
7e1b9e0b70
commit
124e259dc6
1 changed files with 1 additions and 5 deletions
|
@ -768,11 +768,7 @@ bool gpt_params_find_arg(int argc, char ** argv, const std::string & arg, gpt_pa
|
||||||
invalid_param = true;
|
invalid_param = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (params.image != "") {
|
params.image.emplace_back(argv[i]);
|
||||||
params.image += ",";
|
|
||||||
}
|
|
||||||
params.image += argv[i];
|
|
||||||
params.image = std::regex_replace(params.image,std::regex(" --image "), ",");
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (arg == "-i" || arg == "--interactive") {
|
if (arg == "-i" || arg == "--interactive") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue