Functions/getImages.py [78:93]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    images = get_images_with_count(image_prompt, image_count)
    image_strings = []
    caption_input = []
    for img in images:
        temp_bytes = img._image_bytes
        image_strings.append(base64.b64encode(temp_bytes).decode("ascii"))
        temp_image=Part.from_data(
                mime_type="image/png",
                data=temp_bytes)
        caption_input.append(temp_image)
    captions = caption_model.generate_content(
        caption_input + [text_prompt],
        generation_config=caption_generation_config,
        safety_settings=safety_settings,
    )
    captions_list = make_captions(captions)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



server/main.py [80:95]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        images = get_images_with_count(image_prompt, image_count)
        image_strings = []
        caption_input = []
        for img in images:
            temp_bytes = img._image_bytes
            image_strings.append(base64.b64encode(temp_bytes).decode("ascii"))
            temp_image=Part.from_data(
                    mime_type="image/png",
                    data=temp_bytes)
            caption_input.append(temp_image)
        captions = caption_model.generate_content(
            caption_input + [text_prompt],
            generation_config=caption_generation_config,
            safety_settings=safety_settings,
        )
        captions_list = make_captions(captions)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



