Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,6 @@ import os
|
|
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:
|
|
|
3 |
import torch
|
4 |
|
5 |
if torch.cuda.is_available():
|
|
|
6 |
device="cuda"
|
7 |
print("Using GPU")
|
8 |
else:
|