Changed environment variable behavior to accept comma separated models rather than a JSON encoded value
This commit is contained in:
parent
f681267999
commit
caa5f66389
3 changed files with 10 additions and 2 deletions
|
@ -30,6 +30,14 @@
|
|||
else
|
||||
{
|
||||
$preload = getenv('KEYBERT_PRELOAD');
|
||||
if($preload === false || $preload == '')
|
||||
{
|
||||
$preload = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
$preload = explode(',', $preload);
|
||||
}
|
||||
}
|
||||
|
||||
$keybert = new Keybert($preload, null, $port);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue