Spaces:
Runtime error
Runtime error
Create run.py
Browse files
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})
|