Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,11 +7,11 @@ import os
|
|
| 7 |
|
| 8 |
st.title("SDG Embedding Visualisation")
|
| 9 |
|
| 10 |
-
with st.spinner("π
|
| 11 |
model_name = 'sentence-transformers/all-MiniLM-L6-v2'
|
| 12 |
model = SentenceTransformer(model_name)
|
| 13 |
|
| 14 |
-
with st.spinner("π
|
| 15 |
df_osdg = pd.read_csv('https://zenodo.org/record/5550238/files/osdg-community-dataset-v21-09-30.csv',sep='\t')
|
| 16 |
|
| 17 |
_lab_dict = {0: 'no_cat',
|
|
|
|
| 7 |
|
| 8 |
st.title("SDG Embedding Visualisation")
|
| 9 |
|
| 10 |
+
with st.spinner("π load language model (sentence transformer)"):
|
| 11 |
model_name = 'sentence-transformers/all-MiniLM-L6-v2'
|
| 12 |
model = SentenceTransformer(model_name)
|
| 13 |
|
| 14 |
+
with st.spinner("π load sdg data"):
|
| 15 |
df_osdg = pd.read_csv('https://zenodo.org/record/5550238/files/osdg-community-dataset-v21-09-30.csv',sep='\t')
|
| 16 |
|
| 17 |
_lab_dict = {0: 'no_cat',
|