theodotus's picture
Added app
904d08f
raw
history blame
407 Bytes
import gradio as gr
from ukrainian_accentor_transformer import Accentor
accentor = Accentor()
def accentification(sentence):
accented_sentence = accentor(sentence)
return accented_sentence
iface = gr.Interface(
fn=accentification,
inputs=gr.inputs.Textbox(label="Input"),
outputs=gr.outputs.Textbox(label="Stressed"),
title="Ukrainian Accentor Transformer",
)
iface.launch()