import pandas as pd | |
from renumics import spotlight | |
if __name__ == "__main__": | |
df = pd.read_csv("dataset.csv") | |
while True: | |
dtypes = { | |
"text_len": float, | |
"text_embedding": spotlight.Embedding, | |
} | |
view = spotlight.show( | |
df, | |
dtype=dtypes, | |
layout="layout.json", | |
port=7860, | |
host="0.0.0.0", | |
allow_filebrowsing=False, | |
) | |
view.close() | |