summerstay commited on
Commit
0da8350
1 Parent(s): d9d60a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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,