Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,17 @@ warnings.filterwarnings("ignore")
|
|
| 27 |
# ==========================================
|
| 28 |
# 1. PAGE CONFIGURATION & MAPPINGS
|
| 29 |
# ==========================================
|
| 30 |
-
st.set_page_config(page_title="Topic Modeling Pipeline", layout="wide", initial_sidebar_state="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
EMBEDDING_MAP = {
|
| 33 |
"MiniLM (Fast & Lightweight)": "sentence-transformers/all-MiniLM-L6-v2",
|
|
@@ -370,4 +380,4 @@ if st.button("🚀 Run Topic Modeling Pipeline", type="primary", use_container_w
|
|
| 370 |
bbox=dict(boxstyle="square,pad=1", facecolor='#f0f0f0', edgecolor='grey', lw=2))
|
| 371 |
|
| 372 |
plt.subplots_adjust(hspace=0.6, wspace=0.3)
|
| 373 |
-
st.pyplot(fig)
|
|
|
|
| 27 |
# ==========================================
|
| 28 |
# 1. PAGE CONFIGURATION & MAPPINGS
|
| 29 |
# ==========================================
|
| 30 |
+
st.set_page_config(page_title="Topic Modeling Pipeline", layout="wide", initial_sidebar_state="expanded")
|
| 31 |
+
|
| 32 |
+
# Add this right below set_page_config to stop the screen from jumping left/right
|
| 33 |
+
st.markdown("""
|
| 34 |
+
<style>
|
| 35 |
+
/* Force the vertical scrollbar to always show so the page width never changes */
|
| 36 |
+
html { overflow-y: scroll; }
|
| 37 |
+
/* Prevent horizontal scrolling */
|
| 38 |
+
.block-container { max-width: 100%; overflow-x: hidden; }
|
| 39 |
+
</style>
|
| 40 |
+
""", unsafe_allow_html=True)
|
| 41 |
|
| 42 |
EMBEDDING_MAP = {
|
| 43 |
"MiniLM (Fast & Lightweight)": "sentence-transformers/all-MiniLM-L6-v2",
|
|
|
|
| 380 |
bbox=dict(boxstyle="square,pad=1", facecolor='#f0f0f0', edgecolor='grey', lw=2))
|
| 381 |
|
| 382 |
plt.subplots_adjust(hspace=0.6, wspace=0.3)
|
| 383 |
+
st.pyplot(fig, use_container_width=True)
|