Syoy commited on
Commit
35f9944
1 Parent(s): daaaeb2

Create run.py

Browse files
Files changed (1) hide show
  1. run.py +9 -0
run.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ if __name__ == "__main__":
2
+ import dataset
3
+ from renumics import spotlight
4
+
5
+ dataset = datasets.load_dataset("renumics/cifar100-enriched", split="train")
6
+
7
+ df = dataset.to_pandas()
8
+ df_show = df.drop(columns=['embedding', 'probabilities'])
9
+ spotlight.show(df_show, port=7860, host="0.0.0.0", dtype={"image": spotlight.Image, "embedding_reduced": spotlight.Embedding})