AlekseyCalvin commited on
Commit
44e1a75
·
verified ·
1 Parent(s): e82fb21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)