Spaces:
Sleeping
Sleeping
felipekitamura
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ sp = gr.Image()
|
|
64 |
|
65 |
|
66 |
def inference(word1, word2, word3):
|
67 |
-
transform = model[word3]
|
68 |
output = model.similar_by_vector(transform)
|
69 |
print(output)
|
70 |
word_list = [word1, word2, word3]
|
|
|
64 |
|
65 |
|
66 |
def inference(word1, word2, word3):
|
67 |
+
transform = model[word3] + model[word2] - model[word1]
|
68 |
output = model.similar_by_vector(transform)
|
69 |
print(output)
|
70 |
word_list = [word1, word2, word3]
|