Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -261,7 +261,7 @@ if query:
|
|
| 261 |
# Add label for the query above the diamond
|
| 262 |
fig.add_trace(go.Scatter(x=[model.wv[query][0]], y=[model.wv[query][1]], mode='text', text=[query],
|
| 263 |
textposition='top right', textfont=dict(color='blue', size=10), hoverinfo='none',
|
| 264 |
-
showlegend=False
|
| 265 |
|
| 266 |
# Add circles for the top 50 similar words
|
| 267 |
fig.add_trace(go.Scatter(x=X_top[:, 0], y=X_top[:, 1], mode='markers',
|
|
|
|
| 261 |
# Add label for the query above the diamond
|
| 262 |
fig.add_trace(go.Scatter(x=[model.wv[query][0]], y=[model.wv[query][1]], mode='text', text=[query],
|
| 263 |
textposition='top right', textfont=dict(color='blue', size=10), hoverinfo='none',
|
| 264 |
+
showlegend=False))
|
| 265 |
|
| 266 |
# Add circles for the top 50 similar words
|
| 267 |
fig.add_trace(go.Scatter(x=X_top[:, 0], y=X_top[:, 1], mode='markers',
|