copied model from Norwegian
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ if 'textbox' not in st.session_state:
|
|
8 |
|
9 |
@st.cache(allow_output_mutation=True, suppress_st_warning=True)
|
10 |
def load_model():
|
11 |
-
model_name = "pere/multi-sentencefix-mt5"
|
12 |
config = T5Config.from_pretrained(model_name)
|
13 |
model = T5ForConditionalGeneration.from_pretrained(model_name,config=config)
|
14 |
tokenizer = T5TokenizerFast.from_pretrained(model_name)
|
|
|
8 |
|
9 |
@st.cache(allow_output_mutation=True, suppress_st_warning=True)
|
10 |
def load_model():
|
11 |
+
model_name = "pere/multi-sentencefix-mt5-large"
|
12 |
config = T5Config.from_pretrained(model_name)
|
13 |
model = T5ForConditionalGeneration.from_pretrained(model_name,config=config)
|
14 |
tokenizer = T5TokenizerFast.from_pretrained(model_name)
|