Spaces:
Sleeping
Sleeping
felipekitamura
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -48,8 +48,8 @@ def inference(word1, word2, word3):
|
|
48 |
df = pd.DataFrame({
|
49 |
"x": reduced_data_pca[:, 0],
|
50 |
"y": reduced_data_pca[:, 1],
|
51 |
-
"color": [
|
52 |
-
"label": ["W1", "W2", "W3", "W4", "W5", "W6", "W7"][:len(data)]
|
53 |
})
|
54 |
#'''
|
55 |
return df
|
|
|
48 |
df = pd.DataFrame({
|
49 |
"x": reduced_data_pca[:, 0],
|
50 |
"y": reduced_data_pca[:, 1],
|
51 |
+
"color": labels[:len(data)]
|
52 |
+
#"label": ["W1", "W2", "W3", "W4", "W5", "W6", "W7"][:len(data)]
|
53 |
})
|
54 |
#'''
|
55 |
return df
|