Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -28,8 +28,7 @@ from huggingface_hub import hf_hub_download, list_repo_files
|
|
28 |
|
29 |
# flash attention
|
30 |
import subprocess
|
31 |
-
|
32 |
-
subprocess.run('pip install flash-attn --no-build-isolation', shell=True)
|
33 |
|
34 |
# Define constants
|
35 |
DESCRIPTION = "[ShowUI Demo](https://huggingface.co/showlab/ShowUI-2B)"
|
|
|
28 |
|
29 |
# flash attention
|
30 |
import subprocess
|
31 |
+
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
|
|
32 |
|
33 |
# Define constants
|
34 |
DESCRIPTION = "[ShowUI Demo](https://huggingface.co/showlab/ShowUI-2B)"
|