SHELLAPANDIANGANHUNGING commited on
Commit
3f7e44f
·
verified ·
1 Parent(s): bc6b419

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -17
app.py CHANGED
@@ -1114,26 +1114,26 @@ if WORDCLOUD_AVAILABLE:
1114
  # Kolom Judul
1115
  with col_wc1:
1116
  if 'judul' in df_local.columns:
1117
- generate_wordcloud(df_local['judul'], "Word Cloud: Judul", col_wc1)
1118
  else:
1119
  col_wc1.warning("Column 'judul' not available.")
1120
 
1121
- # Kolom Kondisi
1122
- with col_wc2:
1123
- if 'kondisi' in df_local.columns:
1124
- generate_wordcloud(df_local['kondisi'], "Word Cloud: Kondisi", col_wc2)
1125
- else:
1126
- col_wc2.warning("Column 'kondisi' not available.")
1127
-
1128
- # Kolom Rekomendasi
1129
- with col_wc3:
1130
- if 'rekomendasi' in df_local.columns:
1131
- generate_wordcloud(df_local['rekomendasi'], "Word Cloud: Rekomendasi", col_wc3)
1132
- else:
1133
- col_wc3.warning("Column 'rekomendasi' not available.")
1134
- else:
1135
- st.markdown("<h3 class='section-title'>4. Global Text Insights (Word Clouds)</h3>", unsafe_allow_html=True)
1136
- st.info("WordCloud library not installed. Install `wordcloud` and `matplotlib` to enable this feature.")
1137
 
1138
  # =================== 5. Matrix (Tetap Dipertahankan) ===================
1139
  st.markdown("<h3 class='section-title'>OBJECTIVE 5 - Findings vs Lead Time: Which Companies Move Slow?</h3>", unsafe_allow_html=True)
 
1114
  # Kolom Judul
1115
  with col_wc1:
1116
  if 'judul' in df_local.columns:
1117
+ generate_wordcloud(df_local['hasil_keyword_dan_kondisi'], "Word Cloud: Judul", col_wc1)
1118
  else:
1119
  col_wc1.warning("Column 'judul' not available.")
1120
 
1121
+ # # Kolom Kondisi
1122
+ # with col_wc2:
1123
+ # if 'kondisi' in df_local.columns:
1124
+ # generate_wordcloud(df_local['kondisi'], "Word Cloud: Kondisi", col_wc2)
1125
+ # else:
1126
+ # col_wc2.warning("Column 'kondisi' not available.")
1127
+
1128
+ # # Kolom Rekomendasi
1129
+ # with col_wc3:
1130
+ # if 'rekomendasi' in df_local.columns:
1131
+ # generate_wordcloud(df_local['rekomendasi'], "Word Cloud: Rekomendasi", col_wc3)
1132
+ # else:
1133
+ # col_wc3.warning("Column 'rekomendasi' not available.")
1134
+ # else:
1135
+ # st.markdown("<h3 class='section-title'>4. Global Text Insights (Word Clouds)</h3>", unsafe_allow_html=True)
1136
+ # st.info("WordCloud library not installed. Install `wordcloud` and `matplotlib` to enable this feature.")
1137
 
1138
  # =================== 5. Matrix (Tetap Dipertahankan) ===================
1139
  st.markdown("<h3 class='section-title'>OBJECTIVE 5 - Findings vs Lead Time: Which Companies Move Slow?</h3>", unsafe_allow_html=True)