--- license: apache-2.0 --- ## Widget Inference Anda dapat mencoba model ini langsung di sini: **(Ganti `username/grammar-corrector-t5` dengan nama model Anda)** import gradio as gr from transformers import pipeline # Load model corrector = pipeline("text2text-generation", model="username/grammar-corrector-t5") # Buat antarmuka Gradio def correct_grammar(text): return corrector(text)[0]["generated_text"] iface = gr.Interface( fn=correct_grammar, inputs=gr.Textbox(lines=5, placeholder="Masukkan teks di sini..."), outputs=gr.Textbox(lines=5), ) iface.launch()