Spaces:
Runtime error
Runtime error
Upload corrector.py
Browse filesupdate huggingface name
- 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("
|
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("
|
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()
|