Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 =
|
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"]
|