mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 18:45:00 +00:00
fix(diffusers): consider options only in form of key/value
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
a25d355d66
commit
930b374d05
1 changed files with 4 additions and 0 deletions
|
@ -168,9 +168,13 @@ class BackendServicer(backend_pb2_grpc.BackendServicer):
|
||||||
# We are storing all the options in a dict so we can use it later when
|
# We are storing all the options in a dict so we can use it later when
|
||||||
# generating the images
|
# generating the images
|
||||||
for opt in options:
|
for opt in options:
|
||||||
|
if ":" not in opt:
|
||||||
|
continue
|
||||||
key, value = opt.split(":")
|
key, value = opt.split(":")
|
||||||
self.options[key] = value
|
self.options[key] = value
|
||||||
|
|
||||||
|
print(f"Options: {self.options}", file=sys.stderr)
|
||||||
|
|
||||||
local = False
|
local = False
|
||||||
modelFile = request.Model
|
modelFile = request.Model
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue