Spaces:
Runtime error
Runtime error
matt-le-kat
commited on
Commit
•
a3f8778
1
Parent(s):
53f76c5
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ import os
|
|
11 |
model_id = "CompVis/stable-diffusion-v1-4"
|
12 |
device = "cuda"
|
13 |
|
14 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id, use_auth_token=os.environ["auth_token"])
|
15 |
pipe = pipe.to(device)
|
16 |
|
17 |
def infer(prompt):
|
|
|
11 |
model_id = "CompVis/stable-diffusion-v1-4"
|
12 |
device = "cuda"
|
13 |
|
14 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, use_auth_token=os.environ["auth_token"], revision="fp16", torch_dtype=torch.float16)
|
15 |
pipe = pipe.to(device)
|
16 |
|
17 |
def infer(prompt):
|