mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
correct case on embeddingFromB64
This commit is contained in:
parent
d0184b8f76
commit
6684610510
@ -34,7 +34,7 @@ def embeddingToB64(data):
|
||||
d = json.dumps(data,cls=EmbeddingEncoder)
|
||||
return base64.b64encode(d.encode())
|
||||
|
||||
def EmbeddingFromB64(data):
|
||||
def embeddingFromB64(data):
|
||||
d = base64.b64decode(data)
|
||||
return json.loads(d,cls=EmbeddingDecoder)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user