iamspruce commited on
Commit
fa26f0f
·
1 Parent(s): c37cee4

updated api

Browse files
Files changed (1) hide show
  1. app/models.py +2 -2
app/models.py CHANGED
@@ -8,8 +8,8 @@ device = torch.device("cpu")
8
  # --- Grammar model ---
9
  # Changed to deepashri/t5-small-grammar-correction, a publicly available model
10
  # for grammatical error correction. This model is fine-tuned from T5-small.
11
- grammar_tokenizer = AutoTokenizer.from_pretrained("deepashri/t5-small-grammar-correction")
12
- grammar_model = AutoModelForSeq2SeqLM.from_pretrained("deepashri/t5-small-grammar-correction").to(device)
13
 
14
  # --- FLAN-T5 for all prompts ---
15
  # Uses google/flan-t5-small for various text generation tasks based on prompts,
 
8
  # --- Grammar model ---
9
  # Changed to deepashri/t5-small-grammar-correction, a publicly available model
10
  # for grammatical error correction. This model is fine-tuned from T5-small.
11
+ grammar_tokenizer = AutoTokenizer.from_pretrained("AventIQ-AI/t5-small-grammar-correction")
12
+ grammar_model = AutoModelForSeq2SeqLM.from_pretrained("AventIQ-AI/t5-small-grammar-correction").to(device)
13
 
14
  # --- FLAN-T5 for all prompts ---
15
  # Uses google/flan-t5-small for various text generation tasks based on prompts,