Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=dtype).to("cuda
|
|
43 |
#pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=torch.float16).to("cuda")
|
44 |
torch.cuda.empty_cache()
|
45 |
|
46 |
-
device = "cuda" if torch.cuda.is_available() else "cpu"
|
47 |
|
48 |
model_id = ("zer0int/LongCLIP-GmP-ViT-L-14")
|
49 |
config = CLIPConfig.from_pretrained(model_id)
|
|
|
43 |
#pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=torch.float16).to("cuda")
|
44 |
torch.cuda.empty_cache()
|
45 |
|
46 |
+
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
47 |
|
48 |
model_id = ("zer0int/LongCLIP-GmP-ViT-L-14")
|
49 |
config = CLIPConfig.from_pretrained(model_id)
|