Spaces:
Sleeping
Sleeping
Merge branch 'main' of https://huggingface.co/spaces/dafqi/indo_twitter_sentiment_app
Browse files- app.py +1 -1
- script/functions.py +1 -1
app.py
CHANGED
@@ -27,7 +27,7 @@ sb1,sb2 = st.columns([2,4])
|
|
27 |
with sb1:
|
28 |
option = st.selectbox('Pilih Mode Pencarian',('Simple','Advanced'))
|
29 |
with sb2:
|
30 |
-
option_model = st.selectbox('Pilih Model',("IndoBERT (Accurate,Slow)
|
31 |
|
32 |
if option == 'Simple':
|
33 |
# create col1 and col2
|
|
|
27 |
with sb1:
|
28 |
option = st.selectbox('Pilih Mode Pencarian',('Simple','Advanced'))
|
29 |
with sb2:
|
30 |
+
option_model = st.selectbox('Pilih Model',("IndoBERT (Accurate,Slow)",'Naive Bayes','Logistic Regression (Less Accurate,Fast)','XGBoost','Catboost','SVM','Random Forest'))
|
31 |
|
32 |
if option == 'Simple':
|
33 |
# create col1 and col2
|
script/functions.py
CHANGED
@@ -16,7 +16,7 @@ from nltk.tokenize import word_tokenize
|
|
16 |
|
17 |
def get_tweets(username, length=10, option = None):
|
18 |
# Creating list to append tweet data to
|
19 |
-
query = "
|
20 |
if option == "Advanced":
|
21 |
query = username
|
22 |
tweets = []
|
|
|
16 |
|
17 |
def get_tweets(username, length=10, option = None):
|
18 |
# Creating list to append tweet data to
|
19 |
+
query = username + " -filter:links filter:replies lang:id"
|
20 |
if option == "Advanced":
|
21 |
query = username
|
22 |
tweets = []
|