Spaces:
Build error
Build error
Commit
·
f4cf673
1
Parent(s):
f09e5db
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ model_id = "CompVis/stable-diffusion-v1-4"
|
|
27 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
28 |
context = autocast if device == "cuda" else nullcontext
|
29 |
|
30 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id,
|
31 |
|
32 |
|
33 |
def infer(prompt,samples):
|
|
|
27 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
28 |
context = autocast if device == "cuda" else nullcontext
|
29 |
|
30 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id,use_auth_token=token).to(device)
|
31 |
|
32 |
|
33 |
def infer(prompt,samples):
|