AdhyaSuman commited on
Commit
010c288
·
verified ·
1 Parent(s): 6142323

Update app/ui.py

Browse files
Files changed (1) hide show
  1. app/ui.py +2 -1
app/ui.py CHANGED
@@ -200,7 +200,8 @@ suggested_max_k = estimate_k_max_from_word_stats(length_stats.get("avg_len"), mo
200
  st.markdown("## 1️⃣ 🏷️ Topic Labeling")
201
  st.info("Topics are automatically labeled using LLMs by analyzing their temporal word distributions.")
202
 
203
- topic_labels = get_topic_labels(beta, vocab, time_labels, llm, label_cache_path)
 
204
  topic_options = list(topic_labels.values())
205
  selected_topic_label = st.selectbox("Select a Topic", topic_options, help="LLM-generated topic label")
206
  label_to_topic = {v: k for k, v in topic_labels.items()}
 
200
  st.markdown("## 1️⃣ 🏷️ Topic Labeling")
201
  st.info("Topics are automatically labeled using LLMs by analyzing their temporal word distributions.")
202
 
203
+ with st.spinner("✨ Generating topic labels... LLM will be used only if labels are not cached."):
204
+ topic_labels = get_topic_labels(beta, vocab, time_labels, llm, label_cache_path)
205
  topic_options = list(topic_labels.values())
206
  selected_topic_label = st.selectbox("Select a Topic", topic_options, help="LLM-generated topic label")
207
  label_to_topic = {v: k for k, v in topic_labels.items()}