Spaces:
Running
Running
Update pages/2 Topic Modeling.py
Browse files
pages/2 Topic Modeling.py
CHANGED
@@ -180,7 +180,7 @@ if uploaded_file is not None:
|
|
180 |
try:
|
181 |
py_lda_vis_html, coherence_lda = pylda(extype)
|
182 |
st.write('Coherence: ', (coherence_lda))
|
183 |
-
st.components.v1.html(py_lda_vis_html, width=
|
184 |
st.markdown('Copyright (c) 2015, Ben Mabey. https://github.com/bmabey/pyLDAvis')
|
185 |
|
186 |
@st.cache_data(ttl=3600, show_spinner=False)
|
@@ -202,7 +202,7 @@ if uploaded_file is not None:
|
|
202 |
)
|
203 |
img_lda(vis)
|
204 |
|
205 |
-
except
|
206 |
st.warning('🖱️ Please click Submit')
|
207 |
|
208 |
with tab2:
|
|
|
180 |
try:
|
181 |
py_lda_vis_html, coherence_lda = pylda(extype)
|
182 |
st.write('Coherence: ', (coherence_lda))
|
183 |
+
st.components.v1.html(py_lda_vis_html, width=1500, height=800)
|
184 |
st.markdown('Copyright (c) 2015, Ben Mabey. https://github.com/bmabey/pyLDAvis')
|
185 |
|
186 |
@st.cache_data(ttl=3600, show_spinner=False)
|
|
|
202 |
)
|
203 |
img_lda(vis)
|
204 |
|
205 |
+
except ValueError:
|
206 |
st.warning('🖱️ Please click Submit')
|
207 |
|
208 |
with tab2:
|