Spaces:
Running
on
Zero
Running
on
Zero
update
Browse files- app.py +6 -0
- requirements.txt +1 -2
app.py
CHANGED
|
@@ -27,6 +27,12 @@ from scepter.modules.utils.directory import get_md5
|
|
| 27 |
from scepter.modules.utils.file_system import FS
|
| 28 |
from scepter.studio.utils.env import init_env
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
from infer import ACEInference
|
| 31 |
from example import get_examples
|
| 32 |
from utils import load_image
|
|
|
|
| 27 |
from scepter.modules.utils.file_system import FS
|
| 28 |
from scepter.studio.utils.env import init_env
|
| 29 |
|
| 30 |
+
import os
|
| 31 |
+
import shlex
|
| 32 |
+
import subprocess
|
| 33 |
+
|
| 34 |
+
subprocess.run(shlex.split('pip install flash-attn --no-build-isolation'), env=os.environ | {'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"})
|
| 35 |
+
|
| 36 |
from infer import ACEInference
|
| 37 |
from example import get_examples
|
| 38 |
from utils import load_image
|
requirements.txt
CHANGED
|
@@ -4,5 +4,4 @@ diffusers
|
|
| 4 |
transformers
|
| 5 |
gradio_imageslider
|
| 6 |
torch==2.4.0
|
| 7 |
-
torchvision
|
| 8 |
-
flash-attn
|
|
|
|
| 4 |
transformers
|
| 5 |
gradio_imageslider
|
| 6 |
torch==2.4.0
|
| 7 |
+
torchvision
|
|
|