thak123 commited on
Commit
ae4ea47
1 Parent(s): a0dd5e7

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import classla
3
+ classla.download('hr')
4
+ nlp = classla.Pipeline('hr')
5
+ def greet(name):
6
+ doc = nlp(name)
7
+ #print(doc.to_conll())
8
+ return doc.to_conll()
9
+
10
+ iface = gr.Interface(fn=greet, inputs="text", outputs="text")
11
+ iface.launch()