Spaces:
Runtime error
Runtime error
File size: 361 Bytes
475ce5d cfdc169 475ce5d cfdc169 475ce5d cfdc169 475ce5d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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() |