huzey commited on
Commit
f0e9f2d
1 Parent(s): 590584b
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -566,7 +566,8 @@ def run_fn(
566
  os.makedirs(target_dir)
567
 
568
  # Use subprocess to run the pip command
569
- subprocess.check_call([sys.executable, '-m', 'pip', 'install', f'transformers=={version}', '-t', target_dir])
 
570
 
571
  target_dir = '/tmp/lisa_transformers_v433'
572
  if not os.path.exists(target_dir):
 
566
  os.makedirs(target_dir)
567
 
568
  # Use subprocess to run the pip command
569
+ # subprocess.check_call([sys.executable, '-m', 'pip', 'install', f'transformers=={version}', '-t', target_dir])
570
+ os.system(f"{sys.executable} -m pip install transformers=={version} -t {target_dir} >> /dev/null 2>&1")
571
 
572
  target_dir = '/tmp/lisa_transformers_v433'
573
  if not os.path.exists(target_dir):