Spaces:
Sleeping
Sleeping
import gradio as gr | |
import gradio as gr | |
from transformers import pipeline | |
pipe = pipeline("text2text-generation", model="gowtham58/T_TL") | |
def get_tamil(text): | |
tamil_txt = pipe(text) | |
return tamil_txt[0]['generated_text'] | |
description = """TRANSLITERATE is to represent or spell in the characters of another alphabet. Normally we create tamil words using English Characters | |
in our daily text conversations. This Model can generate the words in tamil given a transliterated tamil word in english""" | |
css = """ | |
h1 { | |
text-align: center; | |
display:block; | |
font-size:50px | |
} | |
p { | |
text-align: center; | |
display:block; | |
font-size:15px | |
} | |
""" | |
gr.Interface( | |
fn=get_tamil, | |
inputs="textbox", | |
outputs="text", | |
title="Tamil Transliteraion", | |
description=description, | |
examples=[["Vanakkam da Maaplaigala"], ["Naa Ready dha varava"]], | |
css = css, | |
allow_flagging="never", | |
).launch() | |
#demo.launch() | |
#gr.load("models/gowtham58/T_TL", alias="Tamil Transliteration").launch() |