thaboe01 commited on
Commit
0180518
1 Parent(s): a61e741

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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-correctorv2")
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)