Spaces:
Running
on
Zero
Running
on
Zero
Ayushnangia
commited on
Commit
•
6ec4d4f
1
Parent(s):
6729098
fixing legacy issue v3 back to v1
Browse files
app.py
CHANGED
@@ -29,8 +29,8 @@ happy_tt = HappyTextToText("T5", "vennify/t5-base-grammar-correction")
|
|
29 |
grammar_args = TTSettings(num_beams=5, min_length=1)
|
30 |
|
31 |
# Spell Check Model initialization
|
32 |
-
OCRtokenizer = AutoTokenizer.from_pretrained("Bhuvana/t5-base-spellchecker", use_fast=False
|
33 |
-
OCRmodel = AutoModelForSeq2SeqLM.from_pretrained("Bhuvana/t5-base-spellchecker"
|
34 |
|
35 |
|
36 |
def correct_spell(inputs):
|
|
|
29 |
grammar_args = TTSettings(num_beams=5, min_length=1)
|
30 |
|
31 |
# Spell Check Model initialization
|
32 |
+
OCRtokenizer = AutoTokenizer.from_pretrained("Bhuvana/t5-base-spellchecker", use_fast=False)
|
33 |
+
OCRmodel = AutoModelForSeq2SeqLM.from_pretrained("Bhuvana/t5-base-spellchecker")
|
34 |
|
35 |
|
36 |
def correct_spell(inputs):
|