Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
msg
Browse files Browse the repository at this point in the history
  • Loading branch information
akihironitta committed Dec 16, 2022
1 parent 0ad83a5 commit 962f52e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmarks/sd_python_with_autoscaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def setup(self):

def predict(self, requests):
batch_size = len(requests.inputs)
print(f"predicting with batch size {batch_size}")
print(f"start predicting with batch size {batch_size}")
texts = [request.text for request in requests.inputs]
print(texts)
images = self._trainer.predict(
Expand All @@ -53,7 +53,7 @@ def predict(self, requests):
image.save(buffer, format="PNG")
image_str = base64.b64encode(buffer.getvalue()).decode("utf-8")
results.append(image_str)

print(f"finish predicting with batch size {batch_size}")
return BatchResponse(outputs=[{"image": image_str} for image_str in results])

class Text(pydantic.BaseModel):
Expand Down

0 comments on commit 962f52e

Please sign in to comment.