Skip to content

Commit

Permalink
output base64
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Oct 14, 2019
1 parent 56f78f4 commit 62fa75a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cufacesearch/cufacesearch/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ def search_byB64(self, query, options=None):
"""
query_b64s = [str(x) for x in query.split(',') if not x.startswith('data:')]
print("Received {} B64 queries with length of: {}".format(len(query_b64s), [len(x) for x in query_b64s]))
for i in range(len(query_b64s)):
print(i,query_b64s[i])
options_dict, errors = self.get_options_dict(options)
outp = self.searcher.search_imageB64_list(query_b64s, options_dict)
outp_we = self.append_errors(outp, errors)
Expand Down

0 comments on commit 62fa75a

Please sign in to comment.