khang119966 commited on
Commit
b635797
·
verified ·
1 Parent(s): ec015fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -11
app.py CHANGED
@@ -35,17 +35,14 @@ from concurrent.futures import ProcessPoolExecutor
35
 
36
  subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
37
 
38
- subprocess.run('snap install chromium', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
39
-
40
- subprocess.run('wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
41
-
42
- subprocess.run('dpkg -i google-chrome-stable_current_amd64.deb', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
43
-
44
- subprocess.run('apt-get update', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
45
-
46
- subprocess.run('apt-get install wkhtmltopdf', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
47
-
48
- subprocess.run('apt-get install xvfb', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
49
 
50
 
51
 
 
35
 
36
  subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
37
 
38
+ env = {'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}
39
+
40
+ subprocess.run('snap install chromium', env=env, shell=True)
41
+ subprocess.run('wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb', env=env, shell=True)
42
+ subprocess.run('DEBIAN_FRONTEND=noninteractive dpkg -i google-chrome-stable_current_amd64.deb || apt-get -y -f install', env=env, shell=True)
43
+ subprocess.run('apt-get update -y', env=env, shell=True)
44
+ subprocess.run('apt-get install -y wkhtmltopdf', env=env, shell=True)
45
+ subprocess.run('apt-get install -y xvfb', env=env, shell=True)
 
 
 
46
 
47
 
48