Spaces:
Runtime error
Runtime error
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() |