jina-ai / clip-as-service

🏄 Scalable embedding, reasoning, ranking for images and sentences with CLIP
https://clip-as-service.jina.ai
Other
12.43k stars 2.07k forks source link

if http_max_connect=10 ,when appear the error as follow the description, 10 times,will appear Too many concurrent connections!Try to increase the value of "max_concurrency", currently =10 #487

Open caseware66 opened 4 years ago

caseware66 commented 4 years ago

Traceback (most recent call last): File "/home/elasticsearch/cx/BERT-BiLSTM-CRF-NER-master/bert_base/server/http.py", line 58, in encode_query 'result':bc.encode( text_list,text,is_tokenized=True)} File "/home/elasticsearch/cx/BERT-BiLSTM-CRF-NER-master/bert_base/client/init.py", line 433, in arg_wrapper r = f if isinstance(f, dict) else f(*args, *kwargs) File "/home/elasticsearch/cx/BERT-BiLSTM-CRF-NER-master/bert_base/client/init.py", line 197, in arg_wrapper return func(self, args, **kwargs) File "/home/elasticsearch/cx/BERT-BiLSTM-CRF-NER-master/bert_base/client/init.py", line 262, in encode self._check_input_lst_lst_str(texts) File "/home/elasticsearch/cx/BERT-BiLSTM-CRF-NER-master/bert_base/client/init.py", line 380, in _check_input_lst_lst_str BertClient._check_input_lst_str(s) File "/home/elasticsearch/cx/BERT-BiLSTM-CRF-NER-master/bert_base/client/init.py", line 370, in _check_input_lst_str 'all elements in the list must be non-empty string, but element %d is %s' % (idx, repr(s))) ValueError: all elements in the list must be non-empty string, but element 0 is ' '

colethienes commented 4 years ago

If you're using BERT with Elasticsearch, check out this repo.