Grammarly / app.py
shahzaibelbert's picture
Update app.py
fcfb6c5
raw
history blame
361 Bytes
import gradio as gr
from transformers import pipeline
corrector = pipeline(
'text2text-generation',
'pszemraj/flan-t5-large-grammar-synthesis',
)
def grammar_check(text):
results = corrector(text)
print(results)
return results
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()