Skip to content

Commit

Permalink
fix: check empty blob
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiniuYu committed Apr 12, 2023
1 parent 66bbad9 commit 164765e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/clip_server/executors/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ def preproc_image(

for d in da:
content = d.content

if d.tensor:
if d.tensor is not None:
d.convert_image_tensor_to_blob()
elif d.blob is None and d.uri:
elif d.content_type != 'blob' and d.uri:
# in case user uses HTTP protocol and send data via curl not using .blob (base64), but in .uri
d.load_uri_to_blob()

Expand Down

0 comments on commit 164765e

Please sign in to comment.