Spaces:
Runtime error
Runtime error
accplan
commited on
Commit
β’
39e43df
1
Parent(s):
8975744
test
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from happytransformer import HappyTextToText, TTSettings
|
3 |
|
4 |
happy_tt = HappyTextToText("T5", "vennify/t5-base-grammar-correction")
|
5 |
-
args = TTSettings(num_beams=5, min_length=1, max_length=
|
6 |
|
7 |
def fix(bad):
|
8 |
result = happy_tt.generate_text("grammar: " + bad, args=args)
|
|
|
2 |
from happytransformer import HappyTextToText, TTSettings
|
3 |
|
4 |
happy_tt = HappyTextToText("T5", "vennify/t5-base-grammar-correction")
|
5 |
+
args = TTSettings(num_beams=5, min_length=1, max_length=1000)
|
6 |
|
7 |
def fix(bad):
|
8 |
result = happy_tt.generate_text("grammar: " + bad, args=args)
|