Tyler Burns commited on
Commit
f6f2683
1 Parent(s): 9e26aef

hover text just title experiment

Browse files
Files changed (2) hide show
  1. .DS_Store +0 -0
  2. app.py +1 -1
.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', 'body'], color = 'cluster', title = 'Context similarity map of results')
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(