sps44 commited on
Commit
ac08e95
1 Parent(s): df12a60

with issues

Browse files
Files changed (1) hide show
  1. run.py +3 -1
run.py CHANGED
@@ -26,6 +26,8 @@ if __name__ == "__main__":
26
  print("Dataset saved to cache.")
27
 
28
  df_cv=pd.read_parquet(cache_file_enrichment)
 
 
29
 
30
  with open(cache_file_issues, "rb") as issue_file:
31
  issues = pickle.load(issue_file)
@@ -33,6 +35,6 @@ if __name__ == "__main__":
33
  #df = dataset.to_pandas()
34
  df_show = df.drop(columns=['embedding', 'probabilities'])
35
  while True:
36
- view = spotlight.show(df_show.sample(5000, random_state=1), port=7860, host="0.0.0.0",
37
  dtype={"image": spotlight.Image, "embedding_reduced": spotlight.Embedding}, allow_filebrowsing=False)
38
  view.close()
 
26
  print("Dataset saved to cache.")
27
 
28
  df_cv=pd.read_parquet(cache_file_enrichment)
29
+
30
+ df = pd.concat([df, df_cv], axis=1)
31
 
32
  with open(cache_file_issues, "rb") as issue_file:
33
  issues = pickle.load(issue_file)
 
35
  #df = dataset.to_pandas()
36
  df_show = df.drop(columns=['embedding', 'probabilities'])
37
  while True:
38
+ view = spotlight.show(df_show.sample(5000, random_state=1), issues=issues, port=7860, host="0.0.0.0",
39
  dtype={"image": spotlight.Image, "embedding_reduced": spotlight.Embedding}, allow_filebrowsing=False)
40
  view.close()