Spaces:
Running
Running
Update apps/sdg_pd.py
Browse files- apps/sdg_pd.py +2 -2
apps/sdg_pd.py
CHANGED
@@ -12,14 +12,14 @@ def app():
|
|
12 |
df_osdg = pd.read_csv("sdg_umap.csv", sep = "|")
|
13 |
|
14 |
#labels = [_lab_dict[lab] for lab in df_osdg['label'] ]
|
15 |
-
|
16 |
#docs = list(df_osdg['text'])
|
17 |
|
18 |
with st.spinner("👑 create visualisation"):
|
19 |
fig = px.scatter_3d(
|
20 |
df_osdg, x='coord_x', y='coord_y', z='coord_z',
|
21 |
color='labels',
|
22 |
-
opacity = .5, hover_data=
|
23 |
fig.update_scenes(xaxis_visible=False, yaxis_visible=False,zaxis_visible=False )
|
24 |
fig.update_traces(marker_size=4)
|
25 |
st.plotly_chart(fig)
|
|
|
12 |
df_osdg = pd.read_csv("sdg_umap.csv", sep = "|")
|
13 |
|
14 |
#labels = [_lab_dict[lab] for lab in df_osdg['label'] ]
|
15 |
+
keys = list(df_osdg['keys'])
|
16 |
#docs = list(df_osdg['text'])
|
17 |
|
18 |
with st.spinner("👑 create visualisation"):
|
19 |
fig = px.scatter_3d(
|
20 |
df_osdg, x='coord_x', y='coord_y', z='coord_z',
|
21 |
color='labels',
|
22 |
+
opacity = .5, hover_data=[keys])
|
23 |
fig.update_scenes(xaxis_visible=False, yaxis_visible=False,zaxis_visible=False )
|
24 |
fig.update_traces(marker_size=4)
|
25 |
st.plotly_chart(fig)
|