thak123's picture
Create app.py
ae4ea47
raw
history blame
254 Bytes
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()