Spaces:
Running
Running
added installing nvidia cuda toolkit for paid gpu duplications to be sure they use cuda to be faster
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import os
|
|
3 |
import torch
|
4 |
|
5 |
if torch.cuda.is_available():
|
|
|
6 |
device="cuda"
|
7 |
print("Using GPU")
|
8 |
else:
|
|
|
3 |
import torch
|
4 |
|
5 |
if torch.cuda.is_available():
|
6 |
+
subprocess.run(["apt-get", "install", "-y", "nvidia-cuda-toolkit"], check=True)
|
7 |
device="cuda"
|
8 |
print("Using GPU")
|
9 |
else:
|