felipekitamura commited on
Commit
5ab917f
·
verified ·
1 Parent(s): 474bbef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 '\n'.join(out_str)
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"],