Spaces:
Running
Running
Commit
·
34e2aae
1
Parent(s):
f658592
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from pythainlp.tokenize import word_tokenize
|
2 |
import gradio as gr
|
3 |
|
4 |
-
def cut_word(
|
5 |
return ' '.join(word_tokenize(text))
|
6 |
|
7 |
iface = gr.Interface(fn=cut_word, inputs="textbox", outputs="text")
|
|
|
1 |
from pythainlp.tokenize import word_tokenize
|
2 |
import gradio as gr
|
3 |
|
4 |
+
def cut_word(text):
|
5 |
return ' '.join(word_tokenize(text))
|
6 |
|
7 |
iface = gr.Interface(fn=cut_word, inputs="textbox", outputs="text")
|