Spaces:
Sleeping
Sleeping
felipekitamura
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -21,8 +21,8 @@ label = gr.Label(show_label=True, label="Word4")
|
|
21 |
|
22 |
def inference(word1, word2, word3):
|
23 |
output = model.similar_by_vector(model[word3] + model[word2] - model[word1])
|
24 |
-
out_str = [x + ": " + str(y)
|
25 |
-
return '\n'.join()
|
26 |
|
27 |
examples = [
|
28 |
["woman", "man", "aunt"],
|
|
|
21 |
|
22 |
def inference(word1, word2, word3):
|
23 |
output = model.similar_by_vector(model[word3] + model[word2] - model[word1])
|
24 |
+
out_str = [x + ": " + str(y) for x,y in [item for item in output]]
|
25 |
+
return '\n'.join(out_str)
|
26 |
|
27 |
examples = [
|
28 |
["woman", "man", "aunt"],
|