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