wannaphong commited on
Commit
0761583
·
verified ·
1 Parent(s): 74216f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -20,11 +20,11 @@ all_thai = list(thai_consonants + thai_vowels)
20
  def count_words(text):
21
  return len(word_tokenize(text))
22
 
23
- def greet(name):
24
  _temp = []
25
- _n = count_words(name)
26
  for i in all_thai:
27
- if i not in name:
28
  _temp.append(i)
29
  if len(_temp)>0:
30
  return "Not complete: "+" ".join(_temp)+"\n\nNumber: "+str(_n)+" words"
 
20
  def count_words(text):
21
  return len(word_tokenize(text))
22
 
23
+ def greet(text):
24
  _temp = []
25
+ _n = count_words(text)
26
  for i in all_thai:
27
+ if i not in text:
28
  _temp.append(i)
29
  if len(_temp)>0:
30
  return "Not complete: "+" ".join(_temp)+"\n\nNumber: "+str(_n)+" words"