nightfury commited on
Commit
594b001
β€’
1 Parent(s): 18e0cee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -55,8 +55,8 @@ def download_image(url):
55
 
56
  #device = "cpu" #"cuda" if torch.cuda.is_available() else "cpu"
57
 
58
- device = torch.device(β€œcuda:0” if torch.cuda.is_available() else β€œcpu”)
59
- print(β€œThe model will be running on”, device, β€œdevice”)
60
  # Convert model parameters and buffers to CPU or Cuda
61
 
62
  model_id_or_path = "CompVis/stable-diffusion-v1-4"
 
55
 
56
  #device = "cpu" #"cuda" if torch.cuda.is_available() else "cpu"
57
 
58
+ device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
59
+ print("The model will be running on :: ", device, "device")
60
  # Convert model parameters and buffers to CPU or Cuda
61
 
62
  model_id_or_path = "CompVis/stable-diffusion-v1-4"