jfataphd commited on
Commit
a363af1
·
1 Parent(s): 314d3c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -236,7 +236,7 @@ if query:
236
  # text=f"Top 10000 words in an interactive embedding map for {query} in {database_name} PubMed corpus"
237
  # f": Zoom in to the black diamond to find {query}", x=0.5, y=1, xanchor='center', yanchor='top',
238
  # font=dict(color='black')))
239
- fig.update_coloraxes(colorbar_title="Similarity with query")
240
 
241
  # Represent query as a large red diamond
242
  fig.add_trace(go.Scatter(x=[model.wv[query][0]], y=[model.wv[query][1]], mode='markers',
@@ -508,7 +508,7 @@ if query:
508
  title=dict(text=f"", x=0.5, y=0.95,
509
  xanchor='center', yanchor='top', font=dict(color='black')),
510
  scene=dict(xaxis_title="Dimension 1", yaxis_title="Dimension 2", zaxis_title="Dimension 3"))
511
- fig2.update_coloraxes(colorbar_title="Similarity with query")
512
 
513
  # Represent query as a large red diamond
514
  fig2.add_trace(
 
236
  # text=f"Top 10000 words in an interactive embedding map for {query} in {database_name} PubMed corpus"
237
  # f": Zoom in to the black diamond to find {query}", x=0.5, y=1, xanchor='center', yanchor='top',
238
  # font=dict(color='black')))
239
+ fig.update_coloraxes(colorbar_title=f"Similarity with {query}")
240
 
241
  # Represent query as a large red diamond
242
  fig.add_trace(go.Scatter(x=[model.wv[query][0]], y=[model.wv[query][1]], mode='markers',
 
508
  title=dict(text=f"", x=0.5, y=0.95,
509
  xanchor='center', yanchor='top', font=dict(color='black')),
510
  scene=dict(xaxis_title="Dimension 1", yaxis_title="Dimension 2", zaxis_title="Dimension 3"))
511
+ fig2.update_coloraxes(colorbar_title=f"Similarity with {query}")
512
 
513
  # Represent query as a large red diamond
514
  fig2.add_trace(