salomonsky commited on
Commit
d1ac4a9
1 Parent(s): e045400

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ selected_model = "timbrooks/instruct-pix2pix"
9
 
10
  @st.cache_resource
11
  def load_model():
12
- return StableDiffusionInstructPix2PixPipeline.from_pretrained(selected_model).to(torch.float32).to(device)
13
 
14
  pipe = load_model()
15
 
 
9
 
10
  @st.cache_resource
11
  def load_model():
12
+ return StableDiffusionInstructPix2PixPipeline.from_pretrained(selected_model, torch_dtype=torch.float32, safety_checker=None).to(device)
13
 
14
  pipe = load_model()
15