import gradio as gr | |
iface = gr.Interface( | |
fn=gr.load("models/balaramas/mbart-sahitrans_new_data"), | |
inputs=gr.Textbox(label="Enter text in Sanskrit", placeholder="Type here..."), | |
outputs=gr.Textbox(label="Translated Hindi Text"), | |
title="Sanskrit to Hindi Translator" | |
) | |
iface.launch() |