Spaces:
Sleeping
Sleeping
felipekitamura
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -44,14 +44,14 @@ def inference(word1, word2, word3):
|
|
44 |
labels = words.keys()
|
45 |
reduced_data_pca = reduce_dimensions(data, method='PCA')
|
46 |
print(reduced_data_pca.shape)
|
47 |
-
'''
|
48 |
df = pd.DataFrame({
|
49 |
"x": reduced_data_pca[:, 0],
|
50 |
"y": reduced_data_pca[:, 1],
|
51 |
"color": ["b", "b", "b", "r", "g", "g", "g"][:len(data)]
|
52 |
})
|
53 |
-
'''
|
54 |
-
return
|
55 |
|
56 |
examples = [
|
57 |
["woman", "man", "aunt"],
|
|
|
44 |
labels = words.keys()
|
45 |
reduced_data_pca = reduce_dimensions(data, method='PCA')
|
46 |
print(reduced_data_pca.shape)
|
47 |
+
#'''
|
48 |
df = pd.DataFrame({
|
49 |
"x": reduced_data_pca[:, 0],
|
50 |
"y": reduced_data_pca[:, 1],
|
51 |
"color": ["b", "b", "b", "r", "g", "g", "g"][:len(data)]
|
52 |
})
|
53 |
+
#'''
|
54 |
+
return df
|
55 |
|
56 |
examples = [
|
57 |
["woman", "man", "aunt"],
|