Spaces:
Runtime error
Runtime error
Commit
·
729acd8
1
Parent(s):
fd36a57
Update app.py
Browse files
app.py
CHANGED
@@ -19,8 +19,7 @@ model_id = "CompVis/stable-diffusion-v1-4"
|
|
19 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
20 |
context = autocast if device == "cuda" else nullcontext
|
21 |
|
22 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id, revision="fp16",torch_dtype=torch.float16
|
23 |
-
use_auth_token=True).to(device)
|
24 |
|
25 |
|
26 |
def infer(prompt,samples):
|
|
|
19 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
20 |
context = autocast if device == "cuda" else nullcontext
|
21 |
|
22 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, revision="fp16",torch_dtype=torch.float16).to(device)
|
|
|
23 |
|
24 |
|
25 |
def infer(prompt,samples):
|