Krebzonide
commited on
Commit
·
5e2764c
1
Parent(s):
52f717d
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import torch
|
|
5 |
|
6 |
pipe = StableDiffusionPipeline.from_pretrained( #Downloading the model and naming it "pipe"
|
7 |
"Lykon/dreamshaper-8", #Name of the model we will download
|
8 |
-
|
9 |
|
10 |
pipe.to("cuda") #Move the model to the GPU because it's faster than the CPU
|
11 |
|
|
|
5 |
|
6 |
pipe = StableDiffusionPipeline.from_pretrained( #Downloading the model and naming it "pipe"
|
7 |
"Lykon/dreamshaper-8", #Name of the model we will download
|
8 |
+
requires_safety_checker=False, safety_checker=None) #Disables the safety checker
|
9 |
|
10 |
pipe.to("cuda") #Move the model to the GPU because it's faster than the CPU
|
11 |
|