nan2 commited on
Commit
961e92a
·
1 Parent(s): 84f02e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ from diffusers import StableDiffusionPipeline
7
  pipe = StableDiffusionPipeline.from_pretrained("nan2/lcbanner", torch_type=torch.float16)
8
  pipe = pipe.to("cuda")
9
  #torch.backends.cudnn.benchmark = True
10
- num_samples = 2
11
 
12
  def infer(prompt):
13
  images = pipe([prompt] * num_samples, guidance_scale=7.5)["sample"]
 
7
  pipe = StableDiffusionPipeline.from_pretrained("nan2/lcbanner", torch_type=torch.float16)
8
  pipe = pipe.to("cuda")
9
  #torch.backends.cudnn.benchmark = True
10
+ num_samples = 1
11
 
12
  def infer(prompt):
13
  images = pipe([prompt] * num_samples, guidance_scale=7.5)["sample"]