Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,8 +42,8 @@ def inference(word1, word2, word3):
|
|
42 |
labels = words.keys()
|
43 |
reduced_data_pca = reduce_dimensions(data, method='PCA')
|
44 |
df = pd.DataFrame({
|
45 |
-
"x":
|
46 |
-
"y":
|
47 |
"color": ["b", "b", "b", "r", "g", "g", "g"]
|
48 |
})
|
49 |
|
|
|
42 |
labels = words.keys()
|
43 |
reduced_data_pca = reduce_dimensions(data, method='PCA')
|
44 |
df = pd.DataFrame({
|
45 |
+
"x": reduced_data_pca[:, 0],
|
46 |
+
"y": reduced_data_pca[:, 1],
|
47 |
"color": ["b", "b", "b", "r", "g", "g", "g"]
|
48 |
})
|
49 |
|