Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|