Spaces:
Runtime error
Runtime error
Commit
Β·
e4e76f9
1
Parent(s):
3fe7649
add keyword
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ HF_MODEL_REPO = "gaidasalsaa/indobertweet-xstress-model"
|
|
| 17 |
BASE_MODEL = "indolem/indobertweet-base-uncased"
|
| 18 |
PT_FILE = "best_indobertweet.pth"
|
| 19 |
|
| 20 |
-
BEARER_TOKEN = "
|
| 21 |
|
| 22 |
# =====================================================
|
| 23 |
# GLOBAL MODEL STORAGE
|
|
@@ -122,7 +122,7 @@ def extract_keywords(tweets):
|
|
| 122 |
"sedih", "tertekan", "muak", "bosan", "frustasi",
|
| 123 |
"gelisah", "cemas", "khawatir", "marah","keos", "demot", "down",
|
| 124 |
"bete", "bt", "jenuh", "penat", "gila", "π", "π©", "π", "π", "π«",
|
| 125 |
-
"sedih", "galau", "panic", "nangis", "menangis", "stressful"
|
| 126 |
]
|
| 127 |
|
| 128 |
found = set()
|
|
|
|
| 17 |
BASE_MODEL = "indolem/indobertweet-base-uncased"
|
| 18 |
PT_FILE = "best_indobertweet.pth"
|
| 19 |
|
| 20 |
+
BEARER_TOKEN = "AAAAAAAAAAAAAAAAAAAAADXr5gEAAAAAnQZgkYRrC4iM5WTblBxDyt58oj8%3DriQZkuHuvRL6Suc3rmDhD3umqbHaxwim2Tfb34rfQpnKqf9Xhd"
|
| 21 |
|
| 22 |
# =====================================================
|
| 23 |
# GLOBAL MODEL STORAGE
|
|
|
|
| 122 |
"sedih", "tertekan", "muak", "bosan", "frustasi",
|
| 123 |
"gelisah", "cemas", "khawatir", "marah","keos", "demot", "down",
|
| 124 |
"bete", "bt", "jenuh", "penat", "gila", "π", "π©", "π", "π", "π«",
|
| 125 |
+
"sedih", "galau", "panic", "nangis", "menangis", "stressful",
|
| 126 |
]
|
| 127 |
|
| 128 |
found = set()
|