Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from transformers import T5Tokenizer, T5ForConditionalGeneration
|
|
5 |
@st.cache_resource
|
6 |
def load_model():
|
7 |
tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-small")
|
8 |
-
model = T5ForConditionalGeneration.from_pretrained("thaboe01/t5-spelling-
|
9 |
return tokenizer, model
|
10 |
|
11 |
# Load model (only once)
|
|
|
5 |
@st.cache_resource
|
6 |
def load_model():
|
7 |
tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-small")
|
8 |
+
model = T5ForConditionalGeneration.from_pretrained("thaboe01/t5-spelling-corrector")
|
9 |
return tokenizer, model
|
10 |
|
11 |
# Load model (only once)
|