Spaces:
Runtime error
Runtime error
Commit ·
d9d60a2
1
Parent(s): a8bc31f
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,9 +7,9 @@ model_Q = SentenceTransformer('flax-sentence-embeddings/multi-QA_v1-mpnet-asymme
|
|
| 7 |
def getVectors(sentences):
|
| 8 |
vectors = []
|
| 9 |
splitSentences = sentences.split('ZZZ')
|
| 10 |
-
for sentence in
|
| 11 |
vectors.append(model_Q.encode(sentence))
|
| 12 |
-
return
|
| 13 |
|
| 14 |
interface = gr.Interface(fn = getVectors,
|
| 15 |
inputs = "text",
|
|
|
|
| 7 |
def getVectors(sentences):
|
| 8 |
vectors = []
|
| 9 |
splitSentences = sentences.split('ZZZ')
|
| 10 |
+
for sentence in splitSentences:
|
| 11 |
vectors.append(model_Q.encode(sentence))
|
| 12 |
+
return vectors
|
| 13 |
|
| 14 |
interface = gr.Interface(fn = getVectors,
|
| 15 |
inputs = "text",
|