Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ import torch
|
|
3 |
from torch import autocast
|
4 |
from diffusers import StableDiffusionPipeline
|
5 |
|
6 |
-
#model_id = "
|
7 |
-
pipe = StableDiffusionPipeline.from_pretrained("
|
8 |
pipe = pipe.to("cuda")
|
9 |
#torch.backends.cudnn.benchmark = True
|
10 |
num_samples = 2
|
|
|
3 |
from torch import autocast
|
4 |
from diffusers import StableDiffusionPipeline
|
5 |
|
6 |
+
#model_id = "nan2/lcbanner"
|
7 |
+
pipe = StableDiffusionPipeline.from_pretrained("nan2/lcbanner", torch_type=torch.float16, revision="fp16")
|
8 |
pipe = pipe.to("cuda")
|
9 |
#torch.backends.cudnn.benchmark = True
|
10 |
num_samples = 2
|