Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
-
|
39 |
-
|
40 |
-
subprocess.run('
|
41 |
-
|
42 |
-
subprocess.run('dpkg -i google-chrome-stable_current_amd64.deb', env=
|
43 |
-
|
44 |
-
subprocess.run('apt-get
|
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 |
|