def match(self, response, correct_answer) -> Number:
        """Compute the cosine similarity between two pieces of ASCII art."""
        if not isinstance(response, str) or not isinstance(correct_answer, str):
            return 0
        if not response:
            return 0
        response_image = ascii_text_to_image(response, 224, 224)
        correct_answer_image = ascii_text_to_image(correct_answer, 224, 224)

        eval_results = self.model.query([response_image, correct_answer_image])
        return 1 if "yes" in eval_results.lower() else 0
Compute the cosine similarity between two pieces of ASCII art.
vlmeval/dataset/utils/megabench/scoring/ascii_art_gpt4o_judge.py