Spaces:
Runtime error
Runtime error
JunchuanYu
commited on
Commit
•
68c3660
1
Parent(s):
d8d3649
Update gramformer.py
Browse files- gramformer.py +1 -1
gramformer.py
CHANGED
@@ -7,7 +7,7 @@ class Gramformer:
|
|
7 |
import errant
|
8 |
import en_core_web_sm
|
9 |
nlp = en_core_web_sm.load()
|
10 |
-
annotator = errant.load('en', nlp)
|
11 |
|
12 |
if use_gpu:
|
13 |
device= "cuda:0"
|
|
|
7 |
import errant
|
8 |
import en_core_web_sm
|
9 |
nlp = en_core_web_sm.load()
|
10 |
+
self.annotator = errant.load('en', nlp)
|
11 |
|
12 |
if use_gpu:
|
13 |
device= "cuda:0"
|