alice-hml commited on
Commit
9d78076
1 Parent(s): 60acf39

Upload corrector.py

Browse files

update huggingface name

Files changed (1) hide show
  1. corrector.py +2 -2
corrector.py CHANGED
@@ -9,13 +9,13 @@ s3 = S3FileSystem(anon=True)
9
  @st.cache(allow_output_mutation=True)
10
  def load_model():
11
  print("Load correction model")
12
- return MBartForConditionalGeneration.from_pretrained("aligator/mBART_french_correction")
13
 
14
 
15
  @st.cache(allow_output_mutation=True)
16
  def load_tokenizer():
17
  print("Load tokenizer for correction model")
18
- return MBartTokenizerFast.from_pretrained("aligator/mBART_french_correction")
19
 
20
 
21
  model = load_model()
 
9
  @st.cache(allow_output_mutation=True)
10
  def load_model():
11
  print("Load correction model")
12
+ return MBartForConditionalGeneration.from_pretrained("alice-hml/mBART_french_correction")
13
 
14
 
15
  @st.cache(allow_output_mutation=True)
16
  def load_tokenizer():
17
  print("Load tokenizer for correction model")
18
+ return MBartTokenizerFast.from_pretrained("alice-hml/mBART_french_correction")
19
 
20
 
21
  model = load_model()