newmm_online / app.py
wannaphong's picture
Update app.py
99753cb
raw
history blame
210 Bytes
from pythainlp.tokenize import word_tokenize
import gradio as gr
def cut_word(text):
return ' '.join(word_tokenize(text))
iface = gr.Interface(fn=cut_word, inputs="textbox", outputs="text")
iface.launch()