Spaces:
Running
on
Zero
Running
on
Zero
Stanislaw Szymanowicz
commited on
Commit
•
db69f7a
1
Parent(s):
a6ee7fc
Indicate if cuda was found
Browse files
app.py
CHANGED
@@ -34,6 +34,7 @@ def main():
|
|
34 |
if torch.cuda.is_available():
|
35 |
device = "cuda:0"
|
36 |
torch.cuda.set_device(device)
|
|
|
37 |
else:
|
38 |
device = "cpu"
|
39 |
|
|
|
34 |
if torch.cuda.is_available():
|
35 |
device = "cuda:0"
|
36 |
torch.cuda.set_device(device)
|
37 |
+
print("Found cuda")
|
38 |
else:
|
39 |
device = "cpu"
|
40 |
|