File size: 540 Bytes
3e94b6c 6f196c6 1b55f10 6f196c6 ca90b0b 6f196c6 3e94b6c 6f196c6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
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,
"text_embedding_reduced": spotlight.Embedding,
}
view = spotlight.show(
df,
dtype=dtypes,
layout="spotlight-layout.json",
port=7860,
host="0.0.0.0",
allow_filebrowsing=False,
)
view.close()
|