Spaces:
Runtime error
Runtime error
Commit
·
0da8350
1
Parent(s):
d9d60a2
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,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,
|
|
|
|
| 8 |
vectors = []
|
| 9 |
splitSentences = sentences.split('ZZZ')
|
| 10 |
for sentence in splitSentences:
|
| 11 |
+
vectors.append(model_Q.encode(sentence).tolist())
|
| 12 |
return vectors
|
| 13 |
|
| 14 |
interface = gr.Interface(fn = getVectors,
|