File size: 301 Bytes
d1f048d
 
9726c95
a9d2412
9726c95
 
 
 
 
1
2
3
4
5
6
7
8
9
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()