Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,9 @@ from diffusers import StableDiffusionPipeline
|
|
| 6 |
#gr.Interface.load("models/bariscal/cbst_style")
|
| 7 |
#pipe = StableDiffusionPipeline.from_pretrained("bariscal/cbst_style", safety_checker=None) #, torch_dtype=torch.float16
|
| 8 |
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
pipe = StableDiffusionPipeline.from_pretrained("bariscal/cbst_style", safety_checker=None)
|
| 11 |
|
|
|
|
| 6 |
#gr.Interface.load("models/bariscal/cbst_style")
|
| 7 |
#pipe = StableDiffusionPipeline.from_pretrained("bariscal/cbst_style", safety_checker=None) #, torch_dtype=torch.float16
|
| 8 |
|
| 9 |
+
# Create a PyTorch generator object
|
| 10 |
+
generator = torch.Generator(device=device)
|
| 11 |
+
|
| 12 |
|
| 13 |
pipe = StableDiffusionPipeline.from_pretrained("bariscal/cbst_style", safety_checker=None)
|
| 14 |
|