Update app.py
Browse files
app.py
CHANGED
|
@@ -68,7 +68,7 @@ def load_embedder(model_name, pool_strat):
|
|
| 68 |
# ==========================================
|
| 69 |
# 2. THE GUIDED UI
|
| 70 |
# ==========================================
|
| 71 |
-
st.title("
|
| 72 |
|
| 73 |
try:
|
| 74 |
st.image("pipeline.png", use_container_width=True)
|
|
@@ -214,7 +214,7 @@ if st.button("🚀 Run Topic Modeling Pipeline", type="primary", use_container_w
|
|
| 214 |
if is_fallback:
|
| 215 |
if safe_n_themes < n_themes:
|
| 216 |
st.warning(f"⚠️ **Reduced requested themes from {n_themes} to {safe_n_themes}.**\n\n"
|
| 217 |
-
f"*
|
| 218 |
f"You cannot sort {dataset_size} sentences into {n_themes} buckets without leaving empty buckets, "
|
| 219 |
f"which mathematically breaks the clustering algorithms!")
|
| 220 |
else:
|
|
|
|
| 68 |
# ==========================================
|
| 69 |
# 2. THE GUIDED UI
|
| 70 |
# ==========================================
|
| 71 |
+
st.title("BERTopic - Topic Modeling Pipeline with Math Visualization")
|
| 72 |
|
| 73 |
try:
|
| 74 |
st.image("pipeline.png", use_container_width=True)
|
|
|
|
| 214 |
if is_fallback:
|
| 215 |
if safe_n_themes < n_themes:
|
| 216 |
st.warning(f"⚠️ **Reduced requested themes from {n_themes} to {safe_n_themes}.**\n\n"
|
| 217 |
+
f"*Reason:* BERTopic clusters complete sentences to preserve context. "
|
| 218 |
f"You cannot sort {dataset_size} sentences into {n_themes} buckets without leaving empty buckets, "
|
| 219 |
f"which mathematically breaks the clustering algorithms!")
|
| 220 |
else:
|