mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-08 13:19:54 +00:00
correct case on embeddingFromB64
This commit is contained in:
@@ -34,7 +34,7 @@ def embeddingToB64(data):
|
|||||||
d = json.dumps(data,cls=EmbeddingEncoder)
|
d = json.dumps(data,cls=EmbeddingEncoder)
|
||||||
return base64.b64encode(d.encode())
|
return base64.b64encode(d.encode())
|
||||||
|
|
||||||
def EmbeddingFromB64(data):
|
def embeddingFromB64(data):
|
||||||
d = base64.b64decode(data)
|
d = base64.b64decode(data)
|
||||||
return json.loads(d,cls=EmbeddingDecoder)
|
return json.loads(d,cls=EmbeddingDecoder)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user