Commit
·
895d0b4
1
Parent(s):
ccb01c2
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from gramformer import Gramformer
|
|
6 |
tokenizer = AutoTokenizer.from_pretrained("docto/Docto-Bot")
|
7 |
model = AutoModelForCausalLM.from_pretrained("docto/Docto-Bot")
|
8 |
special_token = '<|endoftext|>'
|
9 |
-
|
10 |
gf = Gramformer(models = 1, use_gpu=False) # 1=corrector, 2=detector
|
11 |
|
12 |
def get_reply(userinput):
|
|
|
6 |
tokenizer = AutoTokenizer.from_pretrained("docto/Docto-Bot")
|
7 |
model = AutoModelForCausalLM.from_pretrained("docto/Docto-Bot")
|
8 |
special_token = '<|endoftext|>'
|
9 |
+
spacy.load("en_core_web_sm")
|
10 |
gf = Gramformer(models = 1, use_gpu=False) # 1=corrector, 2=detector
|
11 |
|
12 |
def get_reply(userinput):
|