thak123's picture
Update app.py
a36aeae
raw
history blame
266 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()