ford442 commited on
Commit
f378894
·
verified ·
1 Parent(s): 93a2048

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -9,7 +9,11 @@ import os
9
  os.environ["SAFETENSORS_FAST_GPU"] = "1"
10
 
11
  import subprocess
12
- subprocess.run(['sh', './torch.sh'])
 
 
 
 
13
 
14
  #import sys
15
  #conda_prefix = os.path.expanduser("~/miniconda3")
 
9
  os.environ["SAFETENSORS_FAST_GPU"] = "1"
10
 
11
  import subprocess
12
+
13
+ result = subprocess.run(['nvidia-smi'], capture_output=True, text=True, check=True) # check=True raises an exception if the command fails
14
+ print(result)
15
+
16
+ #subprocess.run(['sh', './torch.sh'])
17
 
18
  #import sys
19
  #conda_prefix = os.path.expanduser("~/miniconda3")