Spaces:
Runtime error
Runtime error
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() |