Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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()
|