keithhon commited on
Commit
1a09c2b
1 Parent(s): bb81e2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ from sentence_transformers import SentenceTransformer
3
  model = SentenceTransformer('keithhon/paraphrase-multilingual-MiniLM-L12-v2')
4
 
5
  def compute_embedding(name):
6
- return model.encode(name)
7
 
8
  iface = gr.Interface(fn=compute_embedding, inputs="text", outputs="text")
9
  iface.launch()
 
3
  model = SentenceTransformer('keithhon/paraphrase-multilingual-MiniLM-L12-v2')
4
 
5
  def compute_embedding(name):
6
+ return model.encode(name).tolist()
7
 
8
  iface = gr.Interface(fn=compute_embedding, inputs="text", outputs="text")
9
  iface.launch()