Manjushri commited on
Commit
297ff18
·
verified ·
1 Parent(s): e720c51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from PIL import Image
6
  from diffusers import DiffusionPipeline, StableDiffusionLatentUpscalePipeline
7
  from huggingface_hub import hf_hub_download
8
 
9
- device = 'cuda' if torch.cuda.is_available() else 'cpu'
10
  torch.cuda.max_memory_allocated(device=device)
11
  torch.cuda.empty_cache()
12
 
 
6
  from diffusers import DiffusionPipeline, StableDiffusionLatentUpscalePipeline
7
  from huggingface_hub import hf_hub_download
8
 
9
+ device = 'cuda' #if torch.cuda.is_available() else 'cpu'
10
  torch.cuda.max_memory_allocated(device=device)
11
  torch.cuda.empty_cache()
12