Commit
·
45798af
1
Parent(s):
3295eee
Try PIL
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def text2image_latent(text,steps,width,height,images,diversity):
|
|
22 |
image_str = image_str.replace("data:image/png;base64,","")
|
23 |
decoded_bytes = base64.decodebytes(bytes(image_str, "utf-8"))
|
24 |
img = Image.open(io.BytesIO(decoded_bytes))
|
25 |
-
image_arrays.append(
|
26 |
#url = shortuuid.uuid()
|
27 |
#temp_dir = './tmp'
|
28 |
#if not os.path.exists(temp_dir):
|
|
|
22 |
image_str = image_str.replace("data:image/png;base64,","")
|
23 |
decoded_bytes = base64.decodebytes(bytes(image_str, "utf-8"))
|
24 |
img = Image.open(io.BytesIO(decoded_bytes))
|
25 |
+
image_arrays.append(img)
|
26 |
#url = shortuuid.uuid()
|
27 |
#temp_dir = './tmp'
|
28 |
#if not os.path.exists(temp_dir):
|