faizhalas commited on
Commit
684371d
1 Parent(s): 1e9dacc

Update pages/2 Topic Modeling.py

Browse files
Files changed (1) hide show
  1. pages/2 Topic Modeling.py +2 -2
pages/2 Topic Modeling.py CHANGED
@@ -1,5 +1,6 @@
1
  #import module
2
  import streamlit as st
 
3
  import pandas as pd
4
  import numpy as np
5
  import re
@@ -18,7 +19,6 @@ from pprint import pprint
18
  import pickle
19
  import pyLDAvis
20
  import pyLDAvis.gensim_models as gensimvis
21
- import streamlit.components.v1 as components
22
  from io import StringIO
23
  from ipywidgets.embed import embed_minimal_html
24
  from nltk.stem.snowball import SnowballStemmer
@@ -244,7 +244,7 @@ if uploaded_file is not None:
244
  try:
245
  py_lda_vis_html, coherence_lda, vis = pylda(extype)
246
  st.write('Coherence score: ', coherence_lda)
247
- st.components.v1.html(py_lda_vis_html, width=1500, height=800)
248
  st.markdown('Copyright (c) 2015, Ben Mabey. https://github.com/bmabey/pyLDAvis')
249
 
250
  @st.cache_data(ttl=3600, show_spinner=False)
 
1
  #import module
2
  import streamlit as st
3
+ import streamlit.components.v1 as components
4
  import pandas as pd
5
  import numpy as np
6
  import re
 
19
  import pickle
20
  import pyLDAvis
21
  import pyLDAvis.gensim_models as gensimvis
 
22
  from io import StringIO
23
  from ipywidgets.embed import embed_minimal_html
24
  from nltk.stem.snowball import SnowballStemmer
 
244
  try:
245
  py_lda_vis_html, coherence_lda, vis = pylda(extype)
246
  st.write('Coherence score: ', coherence_lda)
247
+ components.html(py_lda_vis_html, width=1500, height=800)
248
  st.markdown('Copyright (c) 2015, Ben Mabey. https://github.com/bmabey/pyLDAvis')
249
 
250
  @st.cache_data(ttl=3600, show_spinner=False)