Skip to content

Commit

Permalink
Import some dependencies only for stable diffusion test (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
siddvenk committed Dec 12, 2022
1 parent 606aac3 commit b36b465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/llm/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import subprocess as sp
import logging
import math
from PIL import Image
from io import BytesIO

logging.basicConfig(level=logging.INFO)
parser = argparse.ArgumentParser(description='Build the LLM configs')
Expand Down Expand Up @@ -188,6 +186,8 @@ def test_sd_handler(model, model_spec):
spec = sd_model_spec[model]
if "worker" in spec:
check_worker_number(spec["worker"])
from PIL import Image
from io import BytesIO
for size in spec["size"]:
for step in spec["steps"]:
req = {"prompt": "A bird and cat flying through space"}
Expand Down

0 comments on commit b36b465

Please sign in to comment.