import gradio as gr import classla classla.download('hr') nlp = classla.Pipeline('hr') def greet(name): doc = nlp(name) #print(doc.to_conll()) return doc.to_conll() iface = gr.Interface(fn=greet, inputs="text", outputs="text") iface.launch()