Nick088 commited on
Commit
6328231
β€’
1 Parent(s): 9fa3813

added installing nvidia cuda toolkit for paid gpu duplications to be sure they use cuda to be faster

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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: