Update README.md
Browse files
README.md
CHANGED
@@ -49,12 +49,10 @@ from string import ascii_lowercase
|
|
49 |
import Levenshtein
|
50 |
import random
|
51 |
|
52 |
-
tokenizer = AutoTokenizer.from_pretrained("Cipher-AI/Substitution-Cipher-Alphabet-Eng")
|
53 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("Cipher-AI/Substitution-Cipher-Alphabet-Eng")
|
54 |
-
|
55 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
56 |
|
57 |
-
|
|
|
58 |
correction_model = AutoModelForSeq2SeqLM.from_pretrained("Cipher-AI/AutoCorrect-EN-v2").to(device)
|
59 |
|
60 |
def similarity_percentage(s1, s2):
|
|
|
49 |
import Levenshtein
|
50 |
import random
|
51 |
|
|
|
|
|
|
|
52 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
53 |
|
54 |
+
tokenizer = AutoTokenizer.from_pretrained("Cipher-AI/Substitution-Cipher-Alphabet-Eng")
|
55 |
+
alphabet_model = AutoModelForSeq2SeqLM.from_pretrained("Cipher-AI/Substitution-Cipher-Alphabet-Eng").to(device)
|
56 |
correction_model = AutoModelForSeq2SeqLM.from_pretrained("Cipher-AI/AutoCorrect-EN-v2").to(device)
|
57 |
|
58 |
def similarity_percentage(s1, s2):
|