Python, Artificial Intelligence, Serverless, Hugging Face, Local Gpt.
generate_image(origimage, myprompt, stoi, gs): prompt = myprompt im_binary = origimage.encode('utf-8') png_recovered = base64.b64decode(im_binary) init_image = PImage.open(BytesIO(png_recovered)).convert('RGB') init_image = init_image.resize((768, 512)) init_image.save("orig_image.png") As you can