sanmt_v3 / app.py
balaramas's picture
Update app.py
a9d2412 verified
raw
history blame contribute delete
301 Bytes
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()