abreza commited on
Commit
b1f936e
1 Parent(s): 738777e
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -89,7 +89,13 @@ model_option = gr.Radio(options, value="dino16",
89
 
90
  def find_cuda_home():
91
  try:
92
- output = subprocess.check_output(['which', 'nvcc']).decode()
 
 
 
 
 
 
93
  print(output)
94
  for line in output.split('\n'):
95
  if 'Cuda compilation tools' in line:
 
89
 
90
  def find_cuda_home():
91
  try:
92
+ search_string = "CUDA"
93
+ search_directory = "."
94
+
95
+ # Use subprocess to run the grep command
96
+ command = ['grep', '-r', search_string, search_directory]
97
+ output = subprocess.check_output(command).decode()
98
+
99
  print(output)
100
  for line in output.split('\n'):
101
  if 'Cuda compilation tools' in line: