import gradio as gr from xlit_src import XlitEngine def transliterate(input_text): engine = XlitEngine() result = engine.translit_sentence(input_text) return result input_box = gr.inputs.Textbox(type="str", label="Input Text") target = gr.outputs.Textbox() iface = gr.Interface( transliterate, input_box, target, title="English to Hindi Transliteration", description='Model for Transliterating English to Hindi using a Character-level recurrent sequence-to-sequence trained with NEWS2018 DATASET_04', article='Author: Anurag Singh . Using training and inference script from AI4Bharat/IndianNLP-Transliteration