Spaces:
Sleeping
Sleeping
fix error
Browse files- generate.py +4 -4
- install.sh +0 -5
generate.py
CHANGED
|
@@ -63,12 +63,12 @@ opts.streamlit = True
|
|
| 63 |
# [(95, 'ฮ')]
|
| 64 |
|
| 65 |
import string
|
| 66 |
-
import
|
| 67 |
|
| 68 |
-
thai_digits = [*
|
| 69 |
-
thai_characters = [*
|
| 70 |
eng_characters = [*string.ascii_letters]
|
| 71 |
-
thai_floating = [*
|
| 72 |
|
| 73 |
directories = [
|
| 74 |
"inference",
|
|
|
|
| 63 |
# [(95, 'ฮ')]
|
| 64 |
|
| 65 |
import string
|
| 66 |
+
from pythainlp import thai_digits, thai_consonants, thai_vowels
|
| 67 |
|
| 68 |
+
thai_digits = [*thai_digits]
|
| 69 |
+
thai_characters = [*thai_consonants]
|
| 70 |
eng_characters = [*string.ascii_letters]
|
| 71 |
+
thai_floating = [*thai_vowels]
|
| 72 |
|
| 73 |
directories = [
|
| 74 |
"inference",
|
install.sh
DELETED
|
@@ -1,5 +0,0 @@
|
|
| 1 |
-
sudo apt update
|
| 2 |
-
sudo apt install software-properties-common
|
| 3 |
-
sudo add-apt-repository ppa:deadsnakes/ppa
|
| 4 |
-
sudo apt update
|
| 5 |
-
sudo apt install python3.10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|