Python, Artificial Intelligence, Serverless, Hugging Face, Local Gpt.
imgpath = os.path.abspath(os.getcwd())+'/input.png' AIimg = callAPI(imgpath,imgprompt,0.82,16) genimage = Image.open(BytesIO(AIimg)).convert('RGB') genimage.save("ouput.png") st.image(genimage, width=500, caption='Your generated image') To be noted here is that I am using the os library to fetch