Skip to content

Instantly share code, notes, and snippets.

View tadasgedgaudas's full-sized avatar

Tadas Gedgaudas tadasgedgaudas

View GitHub Profile
from difflib import SequenceMatcher
from transformers import AutoModelForCausalLM, AutoTokenizer
# Blacklist phrases we don't want
blacklisted_answers = ["I'm not sure", "I'm sorry,", "I'm not a "]
def similar(first_string, second_string):
"""
Checks how similar two strings are