Python, Artificial Intelligence, Serverless, Hugging Face, Local Gpt.
image now we know the pain… Similarly to what we did on the Beam app, we have to “transform” the image into a string-like stream. input_image = i with open(input_image, "rb") as image_file: encoded_image = base64.b64encode(image_file.read()).decode("utf-8") We create the json dictionary with all