Spaces:
Sleeping
Sleeping
Update app/ui.py
Browse files
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 |
-
|
|
|
|
| 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()}
|