Spaces:
Sleeping
Sleeping
File size: 266 Bytes
ae4ea47 3e994a1 a36aeae ae4ea47 a36aeae 81136e1 3e994a1 81136e1 6bf846d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
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()
|