question_generation_model.py [838:850]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        response = requests.get(test_image_url)
        test_image_content = Image.open(BytesIO(response.content))
        test_image_content = test_image_content.resize((224, 224))
        self.logger.debug('Extracting image feature')
        try:
            test_image_feature = self.datasets.extract_features_from_image(test_image_content)
        except:
            self.logger.error('Error in extracting image feature')
            test_image_content = test_image_content.convert('RGB')
            test_image_feature = self.datasets.extract_features_from_image(test_image_content)

        self.logger.debug('Succesfully extracted image feature')
        test_image_feature = test_image_feature.reshape((1, self.input_shape))
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



question_generation_model.py [886:898]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        response = requests.get(test_image_url)
        test_image_content = Image.open(BytesIO(response.content))
        test_image_content = test_image_content.resize((224, 224))
        self.logger.debug('Extracting image feature')
        try:
            test_image_feature = self.datasets.extract_features_from_image(test_image_content)
        except:
            self.logger.error('Error in extracting image feature')
            test_image_content = test_image_content.convert('RGB')
            test_image_feature = self.datasets.extract_features_from_image(test_image_content)

        self.logger.debug('Succesfully extracted image feature')
        test_image_feature = test_image_feature.reshape((1, self.input_shape))
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



