Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,6 +11,11 @@ from PIL import Image, ImageOps
|
|
| 11 |
from torchvision import transforms
|
| 12 |
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
# ----------------- HELPER FUNCTIONS ----------------- #
|
| 15 |
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
| 16 |
ASSETS_DIR = os.path.join(os.path.dirname(__file__), "assets")
|
|
|
|
| 11 |
from torchvision import transforms
|
| 12 |
|
| 13 |
|
| 14 |
+
print(f"Is CUDA available: {torch.cuda.is_available()}")
|
| 15 |
+
# True
|
| 16 |
+
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
| 17 |
+
# Tesla T4
|
| 18 |
+
|
| 19 |
# ----------------- HELPER FUNCTIONS ----------------- #
|
| 20 |
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
| 21 |
ASSETS_DIR = os.path.join(os.path.dirname(__file__), "assets")
|