Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
import torch
|
| 2 |
print(f"Is CUDA available: {torch.cuda.is_available()}")
|
| 3 |
# True
|
| 4 |
-
|
|
|
|
| 5 |
|
| 6 |
STYLE = """
|
| 7 |
.container {
|
|
|
|
| 1 |
import torch
|
| 2 |
print(f"Is CUDA available: {torch.cuda.is_available()}")
|
| 3 |
# True
|
| 4 |
+
if torch.cuda.is_available():
|
| 5 |
+
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
| 6 |
|
| 7 |
STYLE = """
|
| 8 |
.container {
|