Spaces:
Runtime error
Runtime error
Tyler Burns
commited on
Commit
•
f6f2683
1
Parent(s):
9e26aef
hover text just title experiment
Browse files
.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
app.py
CHANGED
@@ -96,7 +96,7 @@ dat['title'] = dat.title.str.wrap(30).apply(lambda x: x.replace('\n', '<br>'))
|
|
96 |
dat['body'] = dat.body.str.wrap(30).apply(lambda x: x.replace('\n', '<br>'))
|
97 |
|
98 |
# Visualize the data
|
99 |
-
fig = px.scatter(dat, x = 'umap1', y = 'umap2', hover_data = ['title'
|
100 |
|
101 |
# Make the font a little bigger
|
102 |
fig.update_layout(
|
|
|
96 |
dat['body'] = dat.body.str.wrap(30).apply(lambda x: x.replace('\n', '<br>'))
|
97 |
|
98 |
# Visualize the data
|
99 |
+
fig = px.scatter(dat, x = 'umap1', y = 'umap2', hover_data = ['title'], color = 'cluster', title = 'Context similarity map of results')
|
100 |
|
101 |
# Make the font a little bigger
|
102 |
fig.update_layout(
|