Spaces:
Running
Running
print the torch device
Browse files
app.py
CHANGED
@@ -8,6 +8,7 @@ import PIL.Image as Image
|
|
8 |
|
9 |
# Set device to GPU if available
|
10 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
|
|
11 |
|
12 |
# Load the OpenCLIP model and the necessary preprocessors
|
13 |
# openclip_model = 'laion/CLIP-ViT-B-32-laion2B-s34B-b79K'
|
|
|
8 |
|
9 |
# Set device to GPU if available
|
10 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
11 |
+
print(f"PyTorch Device {device}")
|
12 |
|
13 |
# Load the OpenCLIP model and the necessary preprocessors
|
14 |
# openclip_model = 'laion/CLIP-ViT-B-32-laion2B-s34B-b79K'
|