TastyRice commited on
Commit
2fc13ca
1 Parent(s): 91bef09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ torch.backends.cudnn.deterministic = True
37
  torch.backends.cudnn.benchmark = False
38
 
39
  device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
40
-
41
 
42
  def load_pipeline(model_name):
43
  vae = AutoencoderKL.from_pretrained(
 
37
  torch.backends.cudnn.benchmark = False
38
 
39
  device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
40
+ pipeline.to(device)
41
 
42
  def load_pipeline(model_name):
43
  vae = AutoencoderKL.from_pretrained(