Spaces:
Running
Running
salomonsky
commited on
Commit
•
d1ac4a9
1
Parent(s):
e045400
Update app.py
Browse files
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
|
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 |
|