Spaces:
Sleeping
Sleeping
Warnings disabled
Browse files
app.py
CHANGED
@@ -6,12 +6,13 @@ import os
|
|
6 |
from PIL import Image
|
7 |
from embeddings.embeddings import load_model
|
8 |
from sentence_transformers import util
|
|
|
9 |
|
10 |
-
|
11 |
-
|
|
|
12 |
image = Image.open('plots/clusters.png')
|
13 |
|
14 |
-
# Sample HTML chart
|
15 |
chart_data = pd.read_csv(r"data/top_cluster_dataset.csv",dtype={'Headline': str, 'x': np.float64, 'y': np.float64, 'labels': str})
|
16 |
|
17 |
# Create a Streamlit app
|
|
|
6 |
from PIL import Image
|
7 |
from embeddings.embeddings import load_model
|
8 |
from sentence_transformers import util
|
9 |
+
import warnings
|
10 |
|
11 |
+
warnings.filterwarings('ignore')
|
12 |
+
|
13 |
+
# cluster PNG file
|
14 |
image = Image.open('plots/clusters.png')
|
15 |
|
|
|
16 |
chart_data = pd.read_csv(r"data/top_cluster_dataset.csv",dtype={'Headline': str, 'x': np.float64, 'y': np.float64, 'labels': str})
|
17 |
|
18 |
# Create a Streamlit app
|