alice-hml commited on
Commit
3a6eecb
1 Parent(s): d3a60b1

Upload classifier.py

Browse files
Files changed (1) hide show
  1. 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("classifier/")
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("classifier/")
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()