Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
24 |
_temp = []
|
25 |
-
_n = count_words(
|
26 |
for i in all_thai:
|
27 |
-
if i not in
|
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"
|