Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|