Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ from datasets import load_dataset
|
|
2 |
import pandas as pd
|
3 |
|
4 |
import os
|
5 |
-
os.system("pip install git+https://github.com/apple/embedding-atlas.git ")
|
6 |
-
from embedding_atlas.widget import EmbeddingAtlasWidget
|
7 |
|
8 |
# Hardcode the name of the Hugging Face dataset
|
9 |
dataset_name = "Trendyol/Trendyol-Cybersecurity-Instruction-Tuning-Dataset"
|
@@ -18,4 +18,6 @@ df = dataset.to_pandas()
|
|
18 |
|
19 |
# Show the Embedding Atlas widget for your data frame
|
20 |
# The widget takes a Pandas DataFrame as its primary input. [4]
|
21 |
-
EmbeddingAtlasWidget(df)
|
|
|
|
|
|
2 |
import pandas as pd
|
3 |
|
4 |
import os
|
5 |
+
#os.system("pip install git+https://github.com/apple/embedding-atlas.git ")
|
6 |
+
#from embedding_atlas.widget import EmbeddingAtlasWidget
|
7 |
|
8 |
# Hardcode the name of the Hugging Face dataset
|
9 |
dataset_name = "Trendyol/Trendyol-Cybersecurity-Instruction-Tuning-Dataset"
|
|
|
18 |
|
19 |
# Show the Embedding Atlas widget for your data frame
|
20 |
# The widget takes a Pandas DataFrame as its primary input. [4]
|
21 |
+
#EmbeddingAtlasWidget(df)
|
22 |
+
|
23 |
+
os.system(f"embedding-atlas {df} --port 7860")
|