Spaces:
Sleeping
Sleeping
dafiqrahman
commited on
Commit
Β·
8a24dae
1
Parent(s):
6d759cc
Update app.py
Browse files
app.py
CHANGED
@@ -21,13 +21,13 @@ if option == 'Simple':
|
|
21 |
# create col1 and col2
|
22 |
col1, col2 = st.columns([3,2])
|
23 |
with col1:
|
24 |
-
input = st.text_input("Masukkan User/Hastag", "@
|
25 |
with col2:
|
26 |
length = st.number_input("Jumlah Tweet", 10, 500, 100)
|
27 |
else :
|
28 |
col1, col2 = st.columns([3,1])
|
29 |
with col1:
|
30 |
-
input = st.text_input("Masukkan Parameter Pencarian", "(
|
31 |
with col2:
|
32 |
length = st.number_input("Jumlah Tweet", 10, 500, 100)
|
33 |
st.caption("anda bisa menggunakan parameter pencarian yang lebih spesifik, parameter ini sama dengan paremeter pencarian di twitter")
|
@@ -51,6 +51,7 @@ if submit:
|
|
51 |
|
52 |
|
53 |
st.write("<h3>π Analisis Sentimen</h3>",unsafe_allow_html=True)
|
|
|
54 |
col_fig1, col_fig2 = st.columns([4,3])
|
55 |
with col_fig1:
|
56 |
with st.spinner('Sedang Membuat Grafik...'):
|
@@ -79,6 +80,7 @@ if submit:
|
|
79 |
plt.axis("off")
|
80 |
st.pyplot(fig)
|
81 |
st.write("<h3>β¨ Sentiment Clustering</h3>",unsafe_allow_html=True)
|
|
|
82 |
@st.experimental_singleton
|
83 |
def load_sentence_model():
|
84 |
embedding_model = SentenceTransformer('sentence_bert')
|
|
|
21 |
# create col1 and col2
|
22 |
col1, col2 = st.columns([3,2])
|
23 |
with col1:
|
24 |
+
input = st.text_input("Masukkan User/Hastag", "@traveloka")
|
25 |
with col2:
|
26 |
length = st.number_input("Jumlah Tweet", 10, 500, 100)
|
27 |
else :
|
28 |
col1, col2 = st.columns([3,1])
|
29 |
with col1:
|
30 |
+
input = st.text_input("Masukkan Parameter Pencarian", "(to:@traveloka AND @traveloka) -filter:links filter:replies lang:id")
|
31 |
with col2:
|
32 |
length = st.number_input("Jumlah Tweet", 10, 500, 100)
|
33 |
st.caption("anda bisa menggunakan parameter pencarian yang lebih spesifik, parameter ini sama dengan paremeter pencarian di twitter")
|
|
|
51 |
|
52 |
|
53 |
st.write("<h3>π Analisis Sentimen</h3>",unsafe_allow_html=True)
|
54 |
+
st.caption("double tap untuk mereset grafik")
|
55 |
col_fig1, col_fig2 = st.columns([4,3])
|
56 |
with col_fig1:
|
57 |
with st.spinner('Sedang Membuat Grafik...'):
|
|
|
80 |
plt.axis("off")
|
81 |
st.pyplot(fig)
|
82 |
st.write("<h3>β¨ Sentiment Clustering</h3>",unsafe_allow_html=True)
|
83 |
+
st.caption("double tap untuk mereset grafik")
|
84 |
@st.experimental_singleton
|
85 |
def load_sentence_model():
|
86 |
embedding_model = SentenceTransformer('sentence_bert')
|