yulu2 commited on
Commit
26b6838
1 Parent(s): 9c6e7dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ model_id = "alaa-lab/InstructCV"
37
 
38
  def main():
39
  # pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id, torch_dtype=torch.float16, safety_checker=None).to("cpu")
40
- pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id, safety_checker=None).to("cpu")
41
  example_image = Image.open("imgs/example2.jpg").convert("RGB")
42
 
43
 
 
37
 
38
  def main():
39
  # pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id, torch_dtype=torch.float16, safety_checker=None).to("cpu")
40
+ pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id, safety_checker=None).to("cuda")
41
  example_image = Image.open("imgs/example2.jpg").convert("RGB")
42
 
43