mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 10:35:01 +00:00
fix(diffusers): consider options only in form of key/value (#5277)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
662cfc2b48
commit
6e8f4f584b
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
|
||||
# generating the images
|
||||
for opt in options:
|
||||
if ":" not in opt:
|
||||
continue
|
||||
key, value = opt.split(":")
|
||||
self.options[key] = value
|
||||
|
||||
print(f"Options: {self.options}", file=sys.stderr)
|
||||
|
||||
local = False
|
||||
modelFile = request.Model
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue