dafiqrahman commited on
Commit
8a24dae
Β·
1 Parent(s): 6d759cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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", "@BPJSKesehatanRI")
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", "(@undipmenfess AND @BPJSKesehatanRI) -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,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')