Python, Artificial Intelligence, Serverless, Hugging Face, Local Gpt.
arguments (as expected by our App running on demand on Beam…): the image path (not an image object but the local path of the image — I didn’t know how to do it directly with the PIL object…), the prompt for the generation, the strength and the guidance scale. def callAPI(i,p,stoi,gs): """ i = image