import gradio as gr | |
iface = gr.Interface( | |
fn=gr.load("models/balaramas/mbart-enhiriser"), | |
inputs=gr.Textbox(label="Enter the paragraph", placeholder="Type here..."), | |
outputs=gr.Textbox(label="Summarized Text in hindi"), | |
title="English to Hindi Summariser" | |
) | |
iface.launch() |