Update app.py
Browse files
app.py
CHANGED
@@ -40,8 +40,8 @@ if st.button('Compute similarity'):
|
|
40 |
X_embedded = TSNE(n_components=2, learning_rate='auto',
|
41 |
init='random').fit_transform(np.concatenate([sentembs, encodings], axis=0))
|
42 |
|
43 |
-
data = data.append({'sent': sent1, 'color': '#F0E442'}) # sentence 1
|
44 |
-
data = data.append({'sent': sent2, 'color': '#D55E00'}) # sentence 2
|
45 |
data['x'] = X_embedded[:,0]
|
46 |
data['y'] = X_embedded[:,1]
|
47 |
|
|
|
40 |
X_embedded = TSNE(n_components=2, learning_rate='auto',
|
41 |
init='random').fit_transform(np.concatenate([sentembs, encodings], axis=0))
|
42 |
|
43 |
+
data = data.append({'sent': sent1, 'color': '#F0E442'}, ignore_index=True) # sentence 1
|
44 |
+
data = data.append({'sent': sent2, 'color': '#D55E00'}, ignore_index=True) # sentence 2
|
45 |
data['x'] = X_embedded[:,0]
|
46 |
data['y'] = X_embedded[:,1]
|
47 |
|