Spaces:
Sleeping
Sleeping
Create run.py
Browse files
run.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from datasets import load_dataset
|
2 |
+
from renumics import spotlight
|
3 |
+
|
4 |
+
|
5 |
+
if __name__ == "__main__":
|
6 |
+
dataset = "mstz/wine"
|
7 |
+
|
8 |
+
ds = load_dataset(dataset)["train"]
|
9 |
+
df = ds.to_pandas()
|
10 |
+
|
11 |
+
while True:
|
12 |
+
view = spotlight.show(df, port=7860, host="0.0.0.0", allow_filebrowsing=False)
|
13 |
+
view.close()
|