Krebzonide commited on
Commit
5e2764c
·
1 Parent(s): 52f717d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- torch_dtype=torch.float16,) #Forces it to download the small version which saves time and computer memory
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