(self, image)
return ' '.join(caption[:len(caption) - 1])
Calls the body of the caption generator which is located in the nlp_queries.py file.
        :param image: the image that you want to generate a caption for.
        :return: a caption for the image inputted in the image field.
Calls the body of the caption generator which is located in the nlp_queries.py file.
        :param image: the image that you want to generate a caption for.
        :return: a caption for the image inputted in the image field.
Calls the body of the caption generator which is located in the nlp_queries . py file . : param image : the image that you want to generate a caption for . : return : a caption for the image inputted in the image field .
def generate_caption(self, image):
        '''
        Calls the body of the caption generator which is located in the nlp_queries.py file.
        :param image: the image that you want to generate a caption for.
        :return: a caption for the image inputted in the image field.
        '''
        caption = generate_caption(self=self, image=image)
        clearLog()
        return ' '.join(caption[:len(caption) - 1])
def generate_caption ( self , image ) : caption = generate_caption ( self = self , image = image ) clearLog ( ) return ' ' . join ( caption [ : len ( caption ) - 1 ] )