Spaces:
Sleeping
Sleeping
felipekitamura
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ label = gr.Label(show_label=True, label="Word4")
|
|
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
|
26 |
|
27 |
examples = [
|
28 |
["woman", "man", "aunt"],
|
|
|
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"],
|