fix bug
This commit is contained in:
parent
26d9d0238f
commit
6707828af2
@ -86,7 +86,7 @@ class BertVector:
|
||||
def encode(self, sentence):
|
||||
self.sentence_len = len(sentence)
|
||||
self.input_queue.put(sentence)
|
||||
prediction = self.output_queue.get()['encodes'][0]
|
||||
prediction = self.output_queue.get()['encodes']
|
||||
return prediction
|
||||
|
||||
def queue_predict_input_fn(self):
|
||||
|
Loading…
Reference in New Issue
Block a user