m. polinsky commited on
Commit
4cf43fd
1 Parent(s): f868e34

Update streamlit_app.py

Browse files
Files changed (1) hide show
  1. streamlit_app.py +2 -2
streamlit_app.py CHANGED
@@ -41,7 +41,7 @@ def initialize(limit, rando, use_cache=True):
41
 
42
  # For all sources retrieve_cluster_data
43
  # returns List[namedtuples] with empty entity lists
44
- # TEST THIS ALL V V V
45
  cluster_data = []
46
  article_meta = namedtuple('article_meta',['source', 'count'])
47
  cluster_meta : List[article_meta] = []
@@ -52,7 +52,7 @@ def initialize(limit, rando, use_cache=True):
52
  c_data, c_meta = data_source.retrieve_cluster_data()
53
  cluster_data.append(c_data)
54
  cluster_meta.append(article_meta(data_source.source_name, c_meta))
55
- st.write(f"Number of clusters from source: {data_source.source_name}\n\t{len(cluster_data)}")
56
  print("Finished...moving on to clustering...")
57
  cluster_data = cluster_data[0] + cluster_data[1]
58
  # NER
 
41
 
42
  # For all sources retrieve_cluster_data
43
  # returns List[namedtuples] with empty entity lists
44
+
45
  cluster_data = []
46
  article_meta = namedtuple('article_meta',['source', 'count'])
47
  cluster_meta : List[article_meta] = []
 
52
  c_data, c_meta = data_source.retrieve_cluster_data()
53
  cluster_data.append(c_data)
54
  cluster_meta.append(article_meta(data_source.source_name, c_meta))
55
+ st.write(f"Number of clusters from source: {data_source.source_name}\n\t{len(c_data)}")
56
  print("Finished...moving on to clustering...")
57
  cluster_data = cluster_data[0] + cluster_data[1]
58
  # NER