Spaces:
Running
Running
Enable dynamic chart for pyLDA
Browse files
pages/2 Topic Modeling.py
CHANGED
@@ -178,7 +178,7 @@ if uploaded_file is not None:
|
|
178 |
try:
|
179 |
py_lda_vis_html, coherence_lda = pylda(extype)
|
180 |
st.write('Coherence: ', (coherence_lda))
|
181 |
-
components.html(py_lda_vis_html, width=1700, height=800)
|
182 |
st.markdown('Copyright (c) 2015, Ben Mabey. https://github.com/bmabey/pyLDAvis')
|
183 |
except NameError:
|
184 |
st.warning('🖱️ Please click Submit')
|
|
|
178 |
try:
|
179 |
py_lda_vis_html, coherence_lda = pylda(extype)
|
180 |
st.write('Coherence: ', (coherence_lda))
|
181 |
+
st.components.v1.html(py_lda_vis_html, width=1700, height=800)
|
182 |
st.markdown('Copyright (c) 2015, Ben Mabey. https://github.com/bmabey/pyLDAvis')
|
183 |
except NameError:
|
184 |
st.warning('🖱️ Please click Submit')
|