Spaces:
Runtime error
Runtime error
Commit
·
a8bc31f
1
Parent(s):
4d9985b
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def getVectors(sentences):
|
|
9 |
splitSentences = sentences.split('ZZZ')
|
10 |
for sentence in sentences:
|
11 |
vectors.append(model_Q.encode(sentence))
|
12 |
-
return vectors
|
13 |
|
14 |
interface = gr.Interface(fn = getVectors,
|
15 |
inputs = "text",
|
|
|
9 |
splitSentences = sentences.split('ZZZ')
|
10 |
for sentence in sentences:
|
11 |
vectors.append(model_Q.encode(sentence))
|
12 |
+
return len(vectors)
|
13 |
|
14 |
interface = gr.Interface(fn = getVectors,
|
15 |
inputs = "text",
|