Spaces:
Runtime error
Runtime error
Upload classifier.py
Browse files- classifier.py +2 -2
classifier.py
CHANGED
@@ -15,13 +15,13 @@ COLOURS = {
|
|
15 |
@st.cache(allow_output_mutation=True)
|
16 |
def load_model():
|
17 |
print('Loading classification model')
|
18 |
-
return BertForTokenClassification.from_pretrained("
|
19 |
|
20 |
|
21 |
@st.cache(allow_output_mutation=True)
|
22 |
def load_tokenizer():
|
23 |
print("Loading tokenizer for classification model")
|
24 |
-
return BertTokenizerFast.from_pretrained("
|
25 |
|
26 |
|
27 |
model = load_model()
|
|
|
15 |
@st.cache(allow_output_mutation=True)
|
16 |
def load_model():
|
17 |
print('Loading classification model')
|
18 |
+
return BertForTokenClassification.from_pretrained("aligator/mBERT_grammatical_error_tagger")
|
19 |
|
20 |
|
21 |
@st.cache(allow_output_mutation=True)
|
22 |
def load_tokenizer():
|
23 |
print("Loading tokenizer for classification model")
|
24 |
+
return BertTokenizerFast.from_pretrained("aligator/mBERT_grammatical_error_tagger")
|
25 |
|
26 |
|
27 |
model = load_model()
|