felipekitamura commited on
Commit
474bbef
·
verified ·
1 Parent(s): 66642ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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) + "\n" for x,y in [item for item in output]]
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"],