Spaces:
Sleeping
Sleeping
Commit
·
f658592
1
Parent(s):
a8cfcd7
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from pythainlp.tokenize import word_tokenize
|
| 2 |
+
import gradio as gr
|
| 3 |
+
|
| 4 |
+
def cut_word(name):
|
| 5 |
+
return ' '.join(word_tokenize(text))
|
| 6 |
+
|
| 7 |
+
iface = gr.Interface(fn=cut_word, inputs="textbox", outputs="text")
|
| 8 |
+
iface.launch()
|