Nick088 commited on
Commit
fb6f00b
1 Parent(s): 5f091f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ import os
3
  import torch
4
 
5
  if torch.cuda.is_available():
6
- !apt-get install nvidia-cuda-toolkit
7
  print("Using GPU")
8
  else:
9
  print("Using CPU")
 
3
  import torch
4
 
5
  if torch.cuda.is_available():
6
+ subprocess.run(["apt-get", "install", "nvidia-cuda-toolkit"], check=True)
7
  print("Using GPU")
8
  else:
9
  print("Using CPU")